[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: focus and select
- From: Tian <tian-ml c-sait net>
- To: gtk-perl-list gnome org
- Subject: Re: focus and select
- Date: Thu, 8 May 2008 10:59:09 +0200
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]