popupclass_functional_organization_expected_use.htm
Navigation: ABC Library Reference > PopupClass > PopupClass Methods >====== PopupClass Functional Organization - Expected Use ====== | |
As an aid to understanding the PopupClass, it is useful to organize its methods into two large categories according to their expected use–the primary interface and the virtual methods. This organization reflects what we believe is typical use of the PopupClass methods.
Non-Virtual Methods
The Non-Virtual Methods, which you are likely to call fairly routinely from your program, can be further divided into three categories:
Housekeeping (one-time) Use:
Init | initialize the PopupClass object | |
AddMenu | add a menu | |
AddItem | add menu item | |
AddItemEvent | set menu item action | |
AddItemMimic | tie menu item to a button | |
AddSubMenu | add submenu | |
Kill | shut down the PopupClass object |
Mainstream Use:
Ask | display and process the popup menu | |
GetItemChecked | return toggle item status | |
GetItemEnabled | return item status | |
SetItemCheck | set toggle item status | |
SetItemEnable | set item status |
Occasional Use:
DeleteItem | remove menu item | |
GetLastSelection | return last selected item | |
SetTranslator | set run-time translator | |
Save | save a menu for restoration | |
SetLevel | set menu item hierarchy level | |
SetText | set menu item text | |
Restore | restore a saved menu |
Virtual Methods
The PopupClass has no virtual methods.
popupclass_functional_organization_expected_use.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1