Re: Option Menus



G'Day !

On Tue, 13 Aug 2002, Colin Thomas wrote:

I have a dumb question.

The only dumb question is the one not asked ...


I have defined a Option menu, and need to access what is currently 
choosen. I know there is a gtk_entry_get_text to get text data. Is there 
a similar for option menus ?? My GTK books only seem to cover how to 
create the option menu, not get data back from them ;-(


Assuming you are working in gtk 1.2.x ....

When you create the menu, you set a callback via the gtk_signal_connect ( )
function.  The data pointer I used is the menuitem.

Attached is some sample code.  Hope it helps.

cheers,
Jim Parker

Attachment: omenu.c
Description: Binary data



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