| menu.js | |
| Menu | Menu components. |
| Variables | |
| ngCurrentPopupMenu | Reference to active popup ngMenu. |
| ngCurrentAppPopupMenu | Reference to active application popup ngMenu (ngApp.PopupMenu). |
| ng_SetControlMenu | Assigns ngMenu to control. |
| ng_SetControlPopup | Assigns popup ngMenu to control. |
| ngListItem (in context of ngMenu) | This class implements ngList item. |
| Properties | |
| SubMenu | References to sub menu ngMenu control. |
| Events | |
| OnMenuClick | |
| OnGetText | |
| ngMenu | Menu control (based on ngList). |
| Properties | |
| MenuHAlign | Horizonal align of menu to popup position. |
| MenuVAlign | Vertical align of menu to popup position. |
| MaxHeight | Meximal height of the menu. |
| MinWidth | Minimal width of the menu. |
| SubMenuDef | Specifies definition which is used in case of submenu creation. |
| SubMenuOverlapX | Specifies how much submenu overlaps menu in horizontal in pixels. |
| SubMenuOverlapY | Specifies how much submenu overlaps menu in vertical in pixels. |
| ActiveSubMenu | Reference to active submenu. |
| AutoPopup | If true the menu handles its visibility by itself. |
| PopupX | Horizontal popup position in pixels. |
| PopupY | Vertical popup position in pixels. |
| PopupElm | Element to which menu was aligned during popup. |
| Methods | |
| Popup | Popups menu at specified position. |
| PopupCtrl | Popups menu along specified control. |
| PopupSubMenu | Popups menu as submenu along specified element. |
| ShowSubMenu | Shows item submenu. |
| GetMenuItemByID | Gets menu item by given ID. |
| GetMenu | Gets (or creates) menu item. |
| MenuClick | Clicks the menu item. |
| CreateSubMenu | Creates item submenu. |
| HideSubMenu | Hides item submenu. |
| HideMenu | Hides menu (and all superior or child menus with AutoPopup=true). |
| BeginUpdate | Prevents the updating of the menu until the EndUpdate method is called. |
| EndUpdate | Performs the repaints deferred by a call to BeginUpdate. |
| GetScreenRect | Gets menu allowed screen rectangle (used for proper menu alignment). |
| Events | |
| OnPopUp | |
| OnDrawSeparator | |
| OnHideSubMenu | |
| OnMenuClick | |
| OnClickOutside | |
| OnSubMenuCreated | |
| OnGetScreenRect | |
| ngMenuBar | Menu bar control (based on ngToolBar). |
| Methods | |
| BeginUpdate | Prevents the updating of the menu until the EndUpdate method is called. |
| EndUpdate | Performs the repaints deferred by a call to BeginUpdate. |
| Definition | |
| ButtonDef | Definition of menubar buttons. |
| Properties | |
| Menu | References to assigned ngMenu controls. |
| ngMenuBarButton | Button for menu representation in menu bar control (based on ngButton). |
| Properties | |
| AutoPopup | If TRUE the menu is automaticaly poped up when mouse enters the button. |
| ngSplitButton | Button with menu dropdown (based on ngButton). |
| Properties | |
| SplitButton | Determines that button is a split button (for detection). |
| Events | |
| OnMenuClick | |
| ngControl | Extensions of ngControl definition. |
| Definition | |
| Menu | Defines ngMenu control which will be opened on control OnClick event. |
| PopupMenu | Defines ngMenu control which opens on right mouse click on control. |
var ngCurrentPopupMenu
Reference to active popup ngMenu.
var ngCurrentAppPopupMenu
Reference to active application popup ngMenu (ngApp.PopupMenu).
function ng_SetControlMenu( c, m )
Assigns ngMenu to control.
void ng_SetControlMenu (object ctrl, object menu)
| ctrl | control to which is menu assigned |
| menu | ngMenu control or null |
-
Control must support OnClick event. If menu is assigned, the reference is stored in Menu property in control.
This class implements ngList item.
| Properties | |
| SubMenu | References to sub menu ngMenu control. |
| Events | |
| OnMenuClick | |
| OnGetText |
References to sub menu ngMenu control. Type: object Default value: undefined
Menu control (based on ngList).
| Properties | |
| MenuHAlign | Horizonal align of menu to popup position. |
| MenuVAlign | Vertical align of menu to popup position. |
| MaxHeight | Meximal height of the menu. |
| MinWidth | Minimal width of the menu. |
| SubMenuDef | Specifies definition which is used in case of submenu creation. |
| SubMenuOverlapX | Specifies how much submenu overlaps menu in horizontal in pixels. |
| SubMenuOverlapY | Specifies how much submenu overlaps menu in vertical in pixels. |
| ActiveSubMenu | Reference to active submenu. |
| AutoPopup | If true the menu handles its visibility by itself. |
| PopupX | Horizontal popup position in pixels. |
| PopupY | Vertical popup position in pixels. |
| PopupElm | Element to which menu was aligned during popup. |
| Methods | |
| Popup | Popups menu at specified position. |
| PopupCtrl | Popups menu along specified control. |
| PopupSubMenu | Popups menu as submenu along specified element. |
| ShowSubMenu | Shows item submenu. |
| GetMenuItemByID | Gets menu item by given ID. |
| GetMenu | Gets (or creates) menu item. |
| MenuClick | Clicks the menu item. |
| CreateSubMenu | Creates item submenu. |
| HideSubMenu | Hides item submenu. |
| HideMenu | Hides menu (and all superior or child menus with AutoPopup=true). |
| BeginUpdate | Prevents the updating of the menu until the EndUpdate method is called. |
| EndUpdate | Performs the repaints deferred by a call to BeginUpdate. |
| GetScreenRect | Gets menu allowed screen rectangle (used for proper menu alignment). |
| Events | |
| OnPopUp | |
| OnDrawSeparator | |
| OnHideSubMenu | |
| OnMenuClick | |
| OnClickOutside | |
| OnSubMenuCreated | |
| OnGetScreenRect |
Prevents the updating of the menu until the EndUpdate method is called.
void BeginUpdate (bool recursive=true)
-
Menu bar control (based on ngToolBar).
| Methods | |
| BeginUpdate | Prevents the updating of the menu until the EndUpdate method is called. |
| EndUpdate | Performs the repaints deferred by a call to BeginUpdate. |
| Definition | |
| ButtonDef | Definition of menubar buttons. |
| Properties | |
| Menu | References to assigned ngMenu controls. |
Prevents the updating of the menu until the EndUpdate method is called.
void BeginUpdate (bool recursive=true)
-
if( typeof c.Menu = == 'undefined' ) c.Menu
References to assigned ngMenu controls. Type: array
Button for menu representation in menu bar control (based on ngButton).
| Properties | |
| AutoPopup | If TRUE the menu is automaticaly poped up when mouse enters the button. |
Button with menu dropdown (based on ngButton).
| Properties | |
| SplitButton | Determines that button is a split button (for detection). |
| Events | |
| OnMenuClick |
Extensions of ngControl definition.
| Definition | |
| Menu | Defines ngMenu control which will be opened on control OnClick event. |
| PopupMenu | Defines ngMenu control which opens on right mouse click on control. |
Reference to active popup ngMenu.
var ngCurrentPopupMenu
Reference to active application popup ngMenu (ngApp.PopupMenu).
var ngCurrentAppPopupMenu
Assigns ngMenu to control.
function ng_SetControlMenu( c, m )
Assigns popup ngMenu to control.
function ng_SetControlPopup( c, m )
References to assigned ngMenu controls.
if( typeof c.Menu = == 'undefined' ) c.Menu
If TRUE the menu is automaticaly poped up when mouse enters the button.
c.AutoPopup