Horizontal scrolling with PluggableTextMorph

karl karl.ramberg at chello.se
Wed Mar 2 07:36:19 UTC 2005


Doug Way wrote:

>On Tue, 01 Mar 2005 20:54:19 +0100, "karl" <karl.ramberg at chello.se>
>said:
>  
>
>>Hi,
>>is horizontal scrolling for PluggableTextMorph implemented and if so how 
>>is it used ?
>>    
>>
>
>Yes, horizontal scrolling is now available for PluggableTextMorph as of
>3.7.  It's actually implemented in the superclass ScrollPane. (see the
>hScrollbar inst var and the h* scrolling methods)
>
>Actually, TwoWayScrollPane (which is obsolete) has some info in its
>class comment about how to do horizontal scrolling with ScrollPane. 
>This info should be moved to the ScrollPane class comment.
>
>For a live example, you can open a browser and bring up something in the
>text pane which is long enough to be wrapped, such as the class
>definition for ScrollPane.  Drill down with the morphic halo on the text
>pane until you get to the "Text" (TextMorphForEditView) morph.  From the
>morphic menu (red halo) for this morph, turn off the "text wrap to
>bounds" checkbox.  Then resize the window to get it to update. (this
>part could be improved)  You'll see that the text pane in the browser
>now has a horizontal scrollbar, and the text is no longer wrapped.
>
>- Doug
>  
>

Thank, thats it! 
Karl

>
>  
>




More information about the Squeak-dev mailing list