Re: EuGTK - GtkImageMenuItem - Is it checked?

new topic     » goto parent     » topic index » view thread      » older message » newer message
irv said...
item_x = create(GtkCheckMenuItem,"with_mnemonic=>_About") 
--- 
-- alternate: create(GtkCheckMenuItem,"with_label=>My Label Text") 
--- 
if get(item_x,"active") then .... 

However, I left out GtkCheckMenuItem from the wrapper: you can easily add the following anywhere in the control method declarations section of GtkRoutines.e

control[GtkCheckMenuItem] = {"gtk_check_menu_item",GtkMenuItem, 
	{"new_with_mnemonic",{S},P}, 
	{"new_with_label",{S},P}, 
	{"new",{},P}, 
	{"get_active",{P},B}, 
	{"set_active",{P,B}}, 
	{"toggled",{P}}, 
	{"get_inconsistent",{P},B}, 
	{"set_inconsistent",{P,B}}, 
	{"set_draw_as_radio",{P,B}}, 
	{"get_draw_as_radio",{P},B} 
} 

Thanks.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu