Re: focus and select



Hello,

On Thu, 8 May 2008 09:07:43 +0200
nadim khemir <nadim khemir net> wrote:
How can I focuse "Text box 2" and select its text so the user can start 
modifying it directly?

This should do what you want (if $tb2 is a reference to your text box):

# Select the whole text
$tb2->select_region(0, length($tb2->get_text));
#ÂFocus
$tb2->grab_focus;


Tian.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]