GUI Help > Menus > setMenuItemRadio
setMenuItemRadio
setMenuItemRadio handle menu, int firstItemInGroup, int lastItemInGroup, int selectItem
Description: Sets which menu item from a group is selected. If a value is a simple yes or no, eg "Show Toolbar" then a check-box style menu item is appropriate. If the value has more than 2 options, use a radio-button style menu item should be used (eg: Allowing the user to select "Textured", "Wireframe" or "None" 3D views). A small black circle is displayed next to the selected item, and any other items in the group are unchecked.
Return Value:
Parameters:
menu | Handle of a menu
firstItemInGroup | The first item in the group which the item to be selected belongs to.
lastItemInGroup | The last item in the group which the selected radiobutton belongs to.
selectItem | The menu item which you want to select.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)