Menu Item - RadioItem Property

RadioItem makes the menu item a radio button

Member of Menu Item (PRIM_PPNL.MenuItem)

Data Type - Boolean

Details

The RadioItem property will make the menu item appear like a radio button
 
Use the GroupIndex and Checked properties to define a set of mutually exclusive menu options.

Example

In this example, whenever a menu item is clicked, its Checked property is automatically set to True.
 
As all 4 menu items belong to the same group, all other menu items are set to False.
Begin_Com Role(*EXTENDS #PRIM_WEB)
 
   Define_Com Class(#PRIM_PPNL.menuBar) Name(#MenuBar1) Parent(#COM_OWNER) Displayposition(1) Tabposition(1) Width(497) Left(48) Top(16)
   Define_Com Class(#PRIM_PPNL.menuItem) Name(#MenuItem1) Caption('Item1') Displayposition(1) Menupopup(#SubMenu1) Parent(#MenuBar1) Height(30) Tabposition(1)
   Define_Com Class(#PRIM_PPNL.Menu) Name(#SubMenu1) Left(48) Top(46)
   Define_Com Class(#PRIM_PPNL.menuItem) Name(#MenuItem2) Displayposition(4) Parent(#SubMenu1) Caption('Item') Groupindex(1) Tabposition(1) Top(75) Width(148)
   Define_Com Class(#PRIM_PPNL.menuItem) Name(#MenuItem3) Displayposition(3) Parent(#SubMenu1) Caption('Item') Groupindex(1) Tabposition(2) Top(50) Width(148)
   Define_Com Class(#PRIM_PPNL.menuItem) Name(#MenuItem4) Displayposition(2) Parent(#SubMenu1) Caption('Item') Groupindex(1) Tabposition(3) Top(25) Width(148)
   Define_Com Class(#PRIM_PPNL.menuItem) Name(#MenuItem5) Displayposition(1) Parent(#SubMenu1) Caption('Item') Groupindex(1) Tabposition(4) Width(148)
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2