Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / qmenuitem.html

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix A: QMENUITEM
Rapid-Q Documentation by William Yu (c)1999-2000 Appendix A: 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
FieldTypeR/WDefaultSupport





CaptionSTRINGRWWXG
Caption specifies the text of the menu item.
CheckedINTEGERRWW
Checked specifies whether a check mark should appear beside the caption.
CommandINTEGERRW
Command is the Windows command ID associated with the menu item.
CountINTEGERRW
Count is the number of subitems of the menu item.
EnabledINTEGERRWTrueW
HandleINTEGERRW
HintSTRINGRWW
MenuIndexINTEGERRWW
MenuIndex is index of the menu item within its parent menu.
RadioItemINTEGERRWFalseW
RadioItem specifies whether the menu item is mutually exclusive with other menu items in its group.
ShortCutSTRINGRWW
ShortCut specifies the key combination users can type to quickly access the menu item.
TagINTEGERRWWXG
VisibleINTEGERRWTrueW
Visible determines whether the menu item should be displayed.


QMenuItem Methods
MethodTypeDescriptionParamsSupport





AddItemsSUBIAdd Subitems to MenuItemQMENUITEMs, InfiniteWXG
DelIndexSUB (index AS LONG)Delete items, by index, from menu1W
DelItemsSUBIDelete items from menuQMENUITEMs, InfiniteW
InsertSUB (I%, Item AS QMENUITEM)Insert an item2W

QMenuItem Events
EventTypeOccurs when...ParamsSupport





OnClickVOIDUser selects item0WXG


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

Prev Component Contents Next Component
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2017-11-22  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:41