PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Finding first gtkentry widget into GtkNotebook pag (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Finding first gtkentry widget into GtkNotebook pag


#770
tropico (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Finding first gtkentry widget into GtkNotebook pag 1 Year, 6 Months ago Karma: 0  
I have a
GtkNotebook with 3 pages
into every page there is a GtkVbox

into first row there is a
Gtkalignment whith a label
and a
Gtkalignment with a GtkEntry or an Object that contains GtkEntry

I would know how navigate childs to grab_focus on the first GtkEntry widget of one page of the notebook when the page becomes current page

Have one some idea ??

Thanks
 
  The administrator has disabled public write access.

#777
kksou (Admin)
Admin
Posts: 1055
graph
User Online Now Click here to see the profile of this user
Re:Finding first gtkentry widget into GtkNotebook pag 1 Year, 6 Months ago Karma: 19  
- 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:

Sample Code 522: How to grab focus on GtkEntry in a GtkNotebook page - Part 1 - highlight all text on focus?

Regards.
/kksou
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved