I should test this on a new small project..
Thanks for the idea,
Sven E

On 2007-04-24, at 19:28, Marc (aliacta.com) wrote:

>
>> But you still have to write a fix, so you put your stuff into the
>> correct EditField... instead of EditField1.ScrollbarHorizontal = true
>>
>> Only 3 words and a "="
>
> It only takes a few lines of code to solve the problem, see below.
>
>>> If you don't have Pro, you may obtain the same result with a
>>> PagePanel.
>>
>> I have got hiccups of page panels more then I need.
>
> 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>
>



Sven E
-----------------------
REALbasic 2007R1 OS X 10.4.8 Intel and 10.4.6 PPC
SEEdit Maxi THE XHTML EDITOR FOR MACINTOSH
http://www.seedit.info



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to