Try setting the cursor position.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TextBoxBase.html#setCursorPos(int)

On Dec 19, 4:53 pm, evgeniy <[email protected]> wrote:
> My problem is following:
> I have a TextBox and a 'virtual' keyboard made of Buttons. Each button
> has ClickListener:
> ...
> public void onClick(Widget button) {
>     //update target;
>     textBox.setText(target.getText() + ((Button)button).getText());}
>
> ...
> The text of TextBox is updated, but if content of TextBox become
> longer then width of TextBox then TextBox doesn't scroll text to the
> left as it does when you type something using keyboard - when content
> grows last-added letters are hidden on the right. Is there any way
> programmatically force TextBox to show right-most part (most recently
> added) of its content?
>
> Regards, Evgeniy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to