[Pharo-dev] Rubrik, scroll to end?

plantec alain.plantec at yahoo.com
Tue Aug 27 04:59:32 EDT 2013


Hi,

I've added #scrollToTop and #scrollToBottom in RubScrolledTextMorph.
Notice that you can use a RubConfigurationChanged announcement 
to reconfigure views:

| consoleTextModel |
consoleTextModel := RubScrolledTextModel new. 
(consoleTextModel newScrolledText beWrapped embeddedInMorphicWindowLabeled: 'Rubric try') openInWorld.
consoleTextModel setText: 'some text .....'.
consoleTextModel announce: (RubConfigurationChanged new configurationBlock: [:view | view scrollToBottom ])

or:
| consoleTextModel |
consoleTextModel := RubScrolledTextModel new. 
(consoleTextModel newScrolledText beWrapped embeddedInMorphicWindowLabeled: 'Rubric try') openInWorld.
consoleTextModel setText: 'some text .....'.
consoleTextModel reconfigureViewWith: [:view | view scrollToBottom ].


Cheers
Alain


Le 23 août 2013 à 11:49, Esteban Lorenzano <estebanlm at gmail.com> a écrit :

> in an incredible ugly way, yes... :)
> 
> consoleTextModel := RubScrolledTextModel new.
> consoleTextArea := consoleTextModel newScrolledText beWrapped. 
> 
> ...
> 
> consoleTextArea scrollPane 
> 	vScrollbarValue: 1;
> 	updateScrollbars. 
> 
> On Aug 23, 2013, at 11:44 AM, Martin Dias <tinchodias at gmail.com> wrote:
> 
>> Esteban,
>> 
>> Did you success to do it? do you know how to "scroll-to-end" in spec/morph?
>> 
>> Martín
>> 
>> 
>> On Thu, Aug 15, 2013 at 5:56 PM, Esteban Lorenzano <estebanlm at gmail.com> wrote:
>> Hi guys,
>> 
>> anyone knows how to do a "scroll-to-end" with rubrik?
>> 
>> thanks,
>> Esteban
>> 
>> 
> 





More information about the Pharo-dev mailing list