Hi All,
How to add icon along with menu items in a "Option Menu" is it possible
Thanks
Shalu
putting images with options in a dropdown list
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
putting images with options in a dropdown list
--
Thanks
Shalu S
Thanks
Shalu S
Re: putting images with options in a dropdown list
No, you have to create your option menu grouping some controls.
For example create a visible button (or graphic element), clicking on it a group of button appears and clicking on one of the new buttons the button group disappears and the first button get icon and value.
For example create a visible button (or graphic element), clicking on it a group of button appears and clicking on one of the new buttons the button group disappears and the first button get icon and value.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: putting images with options in a dropdown list
HI.
Another possibility, a dataGrid of type "form" will do all you ask and more.
It hardly takes more than five minutes to learn how to use one.
Craig Newman
Another possibility, a dataGrid of type "form" will do all you ask and more.
It hardly takes more than five minutes to learn how to use one.
Craig Newman
Re: putting images with options in a dropdown list
There is also the ability to use a stack as a menu, and display it using the popup command:
popup stack "myMenuStack"
This used to be the only way to create popup menus until the popup command started allowing buttons. It places the first card of the stack into a contextual menu. Each menu item should be a button on the card, and the stack should be sized appropriately for a menu list. Because it's just a regular stack, you can include images, graphics, colors, or whatever you want. The menu stack is usually stored as a substack so it is always available. Call the popup command on a mouseDown, and put a mouseUp handler in the stack to act on that message. If you put the mouseUp handler into the card script, it could use a switch statement just like any other menu.
One advantage of menu stacks is that they behave like regular menus; when an item is selected the menu closes, clicking outside the stack closes the menu, and basically it behaves as you'd expect without much scripting. The disadvantage is that it requires a more careful layout for buttons and their properties so that the visual appearance is correct.
popup stack "myMenuStack"
This used to be the only way to create popup menus until the popup command started allowing buttons. It places the first card of the stack into a contextual menu. Each menu item should be a button on the card, and the stack should be sized appropriately for a menu list. Because it's just a regular stack, you can include images, graphics, colors, or whatever you want. The menu stack is usually stored as a substack so it is always available. Call the popup command on a mouseDown, and put a mouseUp handler in the stack to act on that message. If you put the mouseUp handler into the card script, it could use a switch statement just like any other menu.
One advantage of menu stacks is that they behave like regular menus; when an item is selected the menu closes, clicking outside the stack closes the menu, and basically it behaves as you'd expect without much scripting. The disadvantage is that it requires a more careful layout for buttons and their properties so that the visual appearance is correct.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: putting images with options in a dropdown list
Or, use a list field
Regards,
Sri
Regards,
Sri
- Attachments
-
- ListFieldMenu.png (10.92 KiB) Viewed 3559 times