Home  |  Linux  | Mysql  | PHP  | XML
From:kksou Date:Mon Sep  8 20:23:35 2008
Subject:Re: How to grab focus to the first entry field into a
notebook page

AngeloP wrote:
> 
> I have a 
>     GtkNotebook with 3 pages 
>         into every page there is a Gtkalignment
>                into Gtkalignment there is GtkEntry or an Object that
> contains GtkEntry
> 
> I would know how to grab_focus on the first GtkEntry of one page when the
> page becomes
> current page
> 

Hi,

- Store the pointer to the GtkEntry associated with each of the page in an
array.

- When the user clicks a new tab, just use $entry[$tab]->grab_focus()

Here's a complete sample code:

http://www.kksou.com/php-gtk2/articles/grab-focus-on-GtkEntry-in-a-GtkNotebook-page---Part-1---highlight-all-text-on-focus.php

Regards.
/kksou


-- 
View this message in context: http://www.nabble.com/How-to-grab-focus-to-the-first-entry-field-into-a-notebook-page-tp19361211p19384848.html
Sent from the Php - GTK - General mailing list archive at Nabble.com.

Navigate in group php.gtk.general at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants