WDS_MenuNode

WDS_MenuNode

wds

1998 12-05


CLASS

WDS_MenuNode - node in a menu hierarchy


SYNOPSIS


WDS_MenuNode's are the building block of any hierarchy of menus. Each node can potentially popup a menu of more WDS_MenuNode's.


Children, presumably mostly more WDS_MenuNode's, are added and removed using the normal AddWidget() and RemoveWidget() mechanism, but the children are actually placed in a form inside the menu node's popup window. WDS_MenuNode's containing any children are considered the parent of a sub-menu and are not selectable like childless WDS_MenuNode's.


Selection of childless WDS_MenuNode's occur on a change to EW_STATE_0 on the normal callback mechanism.


WDS_Menubar is a convenient place to build a menu hierarchy, but WDS_MenuNode's can be placed in any parent.


PUBLIC MEMBER FUNCTIONS

Inheritance from class WDS_Popup



long SetMenuFlags(long set)

long GetMenuFlags(void)
Set/Get flags controlling the behavior of the menu node. Acceptable values (which may be OR'ed together) are:



WDS_MENU_FLAGS_NONE No special flags
WDS_MENU_FLAGS_AUTOPOSITION The setting for WDS_Popup::SetLocation() is altered automatically: on the bootom for the root of a menu and to the right for a sub menus.


The menu flags are set to WDS_MENU_FLAGS_AUTOPOSITION by default. You must use SetMenuFlags(WDS_MENU_FLAGS_NONE) to deactivate this feature.


STATE CHANGES


WDS_STATE_0 Release and select


FILES

wds/menu.h Menu header file


SEE ALSO

WDS_intro(3), WDS_Widget(3), WDS_Form(3), WDS_MenuBar(3)