Yes, that helped a lot, only a few lines of code solved the problem. Thanks!!
Sven E On 2007-04-24, at 19:28, Marc (aliacta.com) wrote: > > > I'm still going to give you an example with the pagepanel because > that will work with either Pro or Standard and I don't know which you > have. > > Now that you no longer need to have 2 windows, just add your 'global' > property to the App class: > > App.HasHorizontalScroll as Boolean > > Then add a computed property to the Window: > > ActiveEditField as EditField > > With this Getter: > > If App.HasHorizontalScroll Then > If PagePanel1.Value <> 0 Then PagePanel1.Value = 0 > Return EditField1 //has the horizontal scrolbar and sits on > Panel zero > Else > If PagePanel1.Value <> 1 Then PagePanel1.Value = 1 > Return EditField2 //has NO horizontal scrolbar and sits on > Panel one > End If > > Now you can simply work with ActiveEditField regardless of the user's > preference. > > You can even allow the user to switch from one view to the other on > the fly by updating the content of the EditFields when there is a > change in panes in the code above. > > If you'd use a CheckBox to switch on the fly this would be its code: > > app.HasHorizontalScroll = me.value > ActiveEditField.Enabled = true //This line is added so the right > panel will be shown immediately > > Hope this helps, > > Marc > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
