Menus and icons

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Location: Virginia, USA
Contact:

Menus and icons

Post by trenatos » Mon Apr 27, 2015 3:47 pm

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.
Marcus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5113
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Menus and icons

Post by jacque » Mon Apr 27, 2015 6:28 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6175
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Menus and icons

Post by dunbarx » Mon Apr 27, 2015 7:00 pm

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

trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Location: Virginia, USA
Contact:

Re: Menus and icons

Post by trenatos » Mon Apr 27, 2015 7:08 pm

Thanks guys, either should work just fine :)
Marcus

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”