1. EuGTK: GtkCheckMenuItem
- Posted by Jerry_Story Feb 23, 2012
- 1807 views
Everything is showing up in the menu bar except GtkCheckMenuItem.
MenuRaw = create(GtkCheckMenuItem,"new_with_label=>Raw only, no cooked"), MenuNoSalt = create(GtkCheckMenuItem,"new_with_label=>No Salt"), MenuNoDried = create(GtkCheckMenuItem,"new_with_label=>No Dried"),
grep finds examples of GtkRadioMenuItem but no examples of GtkCheckMenuItem.
/demos$ grep RadioMenu *.ex test25.ex: editradio1 = create(GtkRadioMenuItem,0,"Normal","SetColors",NORM), test25.ex: editradio2 = create(GtkRadioMenuItem,editradio1,"Inverse","SetColors",INVERSE), test25.ex: editradio3 = create(GtkRadioMenuItem,editradio2,"Grn/Blk","SetColors",GRNBLK) /demos$ grep CheckMenu *.ex /demos$How do you do GtkCheckMenuItem?
2. Re: EuGTK: GtkCheckMenuItem
- Posted by irv Feb 24, 2012
- 1722 views
I left that out, but you can easily fix that: in GtkEngine.e, around line 199, add GtkCheckMenuItem to the case as shown below:
case GtkToggleButton, GtkCheckButton, GtkMenuItem, GtkCheckMenuItem then if match("_",args[1]) > 0 then return "new_with_mnemonic" else return "new_with_label" end if
And you no longer need the new_with_label=>: part, that is the default. In fact, you should remove all such => commands, they are no longer used. I've updated EuGTK to add GtkCheckMenuItem, as well as a few bug fixes today:
3. Re: EuGTK: GtkCheckMenuItem
- Posted by Jerry_Story Feb 24, 2012
- 1703 views
Yup. That works. Everything is in the menu bar.
4. Re: EuGTK: GtkCheckMenuItem
- Posted by irv Feb 28, 2012
- 1435 views
http://sites.google.com/site/euphoriagtk/Home
Updated today to add Eu function linking to CheckMenuItems, plus demos of really snazzy css gradient backgrounds for windows, buttons, etc...