TextMorph behavior

karl karl.ramberg at chello.se
Wed Mar 22 22:35:40 UTC 2006


Marcus Pedersén skrev:
> Hi!
> I have been trying class TextMorph out for making an editable 
> textfield for my GUI.
> One thing I can't figure out is how to make the text "grow" 
> horisontaly when you write instead of verticaly.
> I am after the behavior similar to the spotlight search text field in 
> mac. If you write loads of text the oldest text "dissapear" (visualy) 
> on the left hand.
> I have tried autoFit: false and wrapFlag: false without any desired 
> results.
> Doesn't TextMorph contain this functionality from start?
> Do I need to subclass and write the function from scratch?
> Many thanks in advance!
> Marcus
I think you would have to subclass to be able to get the behavior you
describe. TextMorph is very confusing and hard to make behave the way
you want.
Karl

>
>
>
> --No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.2.6/287 - Release Date: 2006-03-21
>
>




More information about the Squeak-dev mailing list