XmGetPostedFromWidget(Xm)
XmGetPostedFromWidget --
a RowColumn function that returns the widget from which a menu was posted
Syntax
#include <Xm/RowColumn.h>
Widget XmGetPostedFromWidget (menu)
Widget menu;
Description
XmGetPostedFromWidget returns the widget from which a menu was
posted.
For torn-off menus, this function returns the widget
from which the menu was originally torn.
An application can use this routine during the activate callback to
determine the context in which the menu callback should be interpreted.
menu-
Specifies the widget ID of the menu
For a complete definition of RowColumn and its associated resources, see
XmRowColumn(Xm).
Return value
Returns the widget ID of the widget from which the menu was posted.
If the menu is a Popup Menu, the returned widget is the widget from
which the menu was popped up.
If the menu is a Pulldown Menu, the returned widget is the MenuBar or
OptionMenu from which the widget was pulled down.
See also
XmRowColumn(Xm)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003