' Rapid-Q by William Yu (c)1999-2000 . ' ================================================================================ ' Upload_il_tuo_script_su_Rapidq.it ' Qmenuitem ****** QMENUITEM Component ****** QMenuItem is used to describe the properties of an item in a menu. It is not meant to be a stand-alone component. You usually add a QMenuItem to a QMainMenu or QPopupMenu. QMenuItem Properties Field Type R/W Default Support =============== =============== =============== =============== =============== Caption STRING RW WXG Caption specifies the text of the menu item. Checked INTEGER RW W Checked specifies whether a check mark should appear beside the caption. Command INTEGER R W Command is the Windows command ID associated with the menu item. Count INTEGER R W Count is the number of subitems of the menu item. Enabled INTEGER RW True W Handle INTEGER R W Hint STRING RW W MenuIndex INTEGER RW W MenuIndex is index of the menu item within its parent menu. RadioItem INTEGER RW False W RadioItem specifies whether the menu item is mutually exclusive with other menu items in its group. ShortCut STRING RW W ShortCut specifies the key combination users can type to quickly access the menu item. Tag INTEGER RW WXG Visible INTEGER RW True W Visible determines whether the menu item should be displayed. QMenuItem Methods Method Type Description Params Support =============== =============== =============== =============== =============== AddItems SUBI Add Subitems to QMENUITEMs, WXG MenuItem Infinite SUB (index AS Delete items, DelIndex LONG) by index, from 1 W menu DelItems SUBI Delete items QMENUITEMs, W from menu Infinite Insert SUB (I%, Item Insert an item 2 W AS QMENUITEM) QMenuItem Events Event Type Occurs when... Params Support =============== =============== =============== =============== =============== OnClick VOID User selects 0 WXG item QMenuItem Examples DIM Form AS QForm DIM MainMenu AS QMainMenu DIM Item1 AS QMenuItem MainMenu.Parent = Form Item1.Caption = "&File" MainMenu.AddItems Item1 Form.ShowModal ' =============================================================================== ' 2003 Holyguard.net - 2007_Abruzzoweb