Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-27 Thread plantec
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 esteba...@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 tinchod...@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 esteba...@gmail.com 
 wrote:
 Hi guys,
 
 anyone knows how to do a scroll-to-end with rubrik?
 
 thanks,
 Esteban
 
 
 




Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-27 Thread Stephan Eggermont
In my experience, top and bottom are terminology from the visible domain,
not from the contents. That could confuse users. In a non-wrapped text,
is there going to be a scroll to top left and bottom right, or rather to 
the beginning of the first/last line? Or as it is now, ignoring the horizontal
position?

Stephan





Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-27 Thread Stephan Eggermont

Alain wrote:
Maybe something like: 
#scrollToEndOfText, #scrollToBeginningOfText, #scrollToEndOfLine, 
#scrollToBeginningOfLine. 
#pageUp, #pageDown, #pageLeft, #pageRight. 

Clear to me, thank you

Stephan




Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-27 Thread Tudor Girba
I also thinks it sounds good now. I love this type of discussions.

Doru


On Tue, Aug 27, 2013 at 3:19 PM, Stephan Eggermont step...@stack.nl wrote:


 Alain wrote:
 Maybe something like:
 #scrollToEndOfText, #scrollToBeginningOfText, #scrollToEndOfLine,
 #scrollToBeginningOfLine.
 #pageUp, #pageDown, #pageLeft, #pageRight.

 Clear to me, thank you

 Stephan





-- 
www.tudorgirba.com

Every thing has its own flow


Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-23 Thread Martin Dias
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 esteba...@gmail.comwrote:

 Hi guys,

 anyone knows how to do a scroll-to-end with rubrik?

 thanks,
 Esteban




Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-23 Thread Esteban Lorenzano
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 tinchod...@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 esteba...@gmail.com 
 wrote:
 Hi guys,
 
 anyone knows how to do a scroll-to-end with rubrik?
 
 thanks,
 Esteban
 
 



Re: [Pharo-dev] Rubrik, scroll to end?

2013-08-23 Thread Martin Dias
thanks!


On Fri, Aug 23, 2013 at 11:49 AM, Esteban Lorenzano esteba...@gmail.comwrote:

 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 tinchod...@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 esteba...@gmail.comwrote:

 Hi guys,

 anyone knows how to do a scroll-to-end with rubrik?

 thanks,
 Esteban






[Pharo-dev] Rubrik, scroll to end?

2013-08-15 Thread Esteban Lorenzano
Hi guys, 

anyone knows how to do a scroll-to-end with rubrik? 

thanks, 
Esteban