Page 1 of 1

putting images with options in a dropdown list

Posted: Fri Nov 06, 2015 8:22 am
by shalu
Hi All,

How to add icon along with menu items in a "Option Menu" is it possible

Thanks
Shalu

Re: putting images with options in a dropdown list

Posted: Fri Nov 06, 2015 2:01 pm
by MaxV
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.

Re: putting images with options in a dropdown list

Posted: Fri Nov 06, 2015 2:56 pm
by dunbarx
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

Re: putting images with options in a dropdown list

Posted: Fri Nov 06, 2015 7:51 pm
by jacque
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.

Re: putting images with options in a dropdown list

Posted: Fri Nov 06, 2015 10:58 pm
by sritcp
Or, use a list field

Regards,
Sri