seticon_set_icon_name_for_popup_menu_item_.htm
Navigation: ABC Library Reference > PopupClass > PopupClass Methods >====== SetIcon (set icon name for popup menu item) bmr C6H0009.BMP} ====== | |
SetIcon( name, iconname )
SetIcon | Sets the icon name of a popup menu item. |
name | A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name. |
iconname | A string constant, variable, EQUATE, or expression containing the name of the icon to attach to the menu item. |
The SetIcon method sets the icon of a popup menu item. The AddItem or AddSubItem methods adds the menu item to the popup.
Implementation:
The iconname parameter accepts up to 255 characters.
Example:
LOOP sm = 1 to RECORDS(QQ)
GET(QQ,sm)
pID = Popup.AddItem(CLIP(QQ.Item) & ' ',Clip(QQ.Item),pID,2)
Popup.SetIcon(pID,SELF.QkIcon)
Popup.AddItemEvent(pID,EVENT:NewSelection,QueryControl)
SELF.PopupList.PopupID = pID
SELF.PopupList.QueryName = QQ:Item
ADD(SELF.PopupList)
END
seticon_set_icon_name_for_popup_menu_item_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1