Page 1 of 1

Menus and icons

Posted: Mon Apr 27, 2015 3:47 pm
by trenatos
Been looking but not finding.

One of the things I'm using menus for, is acting as a boolean setter, you can change some settings simply by clicking them in the menu, simple to trap with a switch.

But what I haven't found is how to set icons next to the menu items.

So in this case I want to show the user that the option is active with an icon next to the menu item.

Re: Menus and icons

Posted: Mon Apr 27, 2015 6:28 pm
by jacque
You can't assign arbitrary images as icons, but you can use the built-in checkmark or dot. See the "menu" entry in the dictionary for info on how to set up your menus to use those.

Re: Menus and icons

Posted: Mon Apr 27, 2015 7:00 pm
by dunbarx
If you need to show icons in a "pull-down" type of list, you can make a dataGrid of type "form". The DG manual gives an example. Of course, this is not in the menubar, but rather a standalone control.

Craig Newman

Re: Menus and icons

Posted: Mon Apr 27, 2015 7:08 pm
by trenatos
Thanks guys, either should work just fine :)