*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Vk/VkMenuAction (3)              
Title
Content
Arch
Section
 

Contents


VkMenuAction(3x)					      VkMenuAction(3x)


NAME    [Toc]    [Back]

     VkMenuAction - Class For all menu actions

INHERITS FROM    [Toc]    [Back]

     VkMenuItem	: VkComponent :	VkCallbackObject

HEADER FILE    [Toc]    [Back]

     #include <Vk/VkMenuItem.h>


PUBLIC PROTOCOL	SUMMARY
   Constructor/Destructor
	   VkMenuAction(const char     *name,
			XtCallbackProc	callback = NULL,
			XtPointer	clientData = NULL);
	   VkMenuAction(const char     *name,
			XtCallbackProc	callback,
			XtCallbackProc	undoCallback,
			XtPointer	clientData = NULL);
	   ~VkMenuAction();


   Manipulating	Menu Items
	   virtual void	undo();


   Access Functions    [Toc]    [Back]
	   virtual const char* className();
	   virtual VkMenuItemType menuType();
	   Boolean hasUndo()

CLASS DESCRIPTION    [Toc]    [Back]

     The VkMenuAction class represents a user-selectable command in a menu.
     Objects of	type VkMenuAction can be placed	in any VkMenu subclass.	The
     VkMenuAction adds an XmPushButton widget into its parent menu pane. Like
     all VkMenuItems, VkMenuAction objects can be activated, deactivated,
     replaced, and so on.

     If	an action has an undo callback,	the object automatically registers
     itself with an instance of	the VkUndoManager class	when the action	is
     executed. An undo callback	can be specified when the object is
     instantiated.

FUNCTION DESCRIPTIONS    [Toc]    [Back]

   VkMenuAction
	   VkMenuAction(const char     *name,
			XtCallbackProc	callback = NULL,
			XtPointer	clientData = NULL);
	   VkMenuAction(const char     *name,
			XtCallbackProc	callback,
			XtCallbackProc	undoCallback,



									Page 1






VkMenuAction(3x)					      VkMenuAction(3x)



			XtPointer	clientData = NULL);




   ~VkMenuAction
	   ~VkMenuAction();


	  Construct a VkMenuAction object. No widgets are built	in the
	  constructor.

   undo
	   virtual void	undo();


	  Undo the action associated with this menu item. This function	is
	  normally called by an	instance of VkUndoManager. It invokes any undo
	  callback specified for this item.

   className
	   virtual const char* className();


	  The class name of this class is "VkMenuAction".

   menuType
	   virtual VkMenuItemType menuType();


	  Returns an enumeration that identifies the type of this menu object.
	  The type of VkMenuAction is ACTION.

   hasUndo()
	   Boolean hasUndo()



EXAMPLES    [Toc]    [Back]

     See VkMenu.

INHERITED MEMBER FUNCTIONS    [Toc]    [Back]

   Inherited from VkMenuItem
	  show(), hide(), manageAll(), ~VkMenuItem(), setLabel(),
	  setPosition(), activate(), deactivate(), remove(), show(),
	  isContainer(), _position, _isBuilt, _sensitive, _parentMenu, _label,
	  _isHidden, _unmanagedWidgets,	_numUnmanagedWidgets,







									Page 2






VkMenuAction(3x)					      VkMenuAction(3x)



   Inherited from VkComponent    [Toc]    [Back]
	  installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
	  setDefaultResources(), getResources(), manage(), unmanage(),
	  baseWidget(),	okToQuit(), _name, _baseWidget,	_w, deleteCallback


   Inherited from VkCallbackObject    [Toc]    [Back]
	  callCallbacks(), addCallback(), removeCallback(),
	  removeAllCallbacks()

KNOWN DERIVED CLASSES    [Toc]    [Back]

     VkMenuConfirmFirstAction, VkMenuActionObject, VkMenuActionWidget,
     VkMenuToggle, VkMenuUndoManager

KNOWN CLASSES THAT USE THIS CLASS    [Toc]    [Back]

     VkMenu, VkMenuUndoManager

SEE ALSO    [Toc]    [Back]

      
      
     VkMenuItem, VkComponent, VkMenu, VkMenuAction, VkMenuUndoManager
     ViewKit Programmer's Guide
     The X Window System, DEC Press, Bob Sheifler and Jim Gettys
     The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
     The OSF/Motif Programmers Reference, Prentice Hall, OSF


									PPPPaaaaggggeeee 3333
[ Back ]
 Similar pages
Name OS Title
VkMenuActionWidget IRIX Class For Widget-based Menu Actions
VkMenuToggle IRIX Class that support two-state actions in menus
VkPopupMenu IRIX A Popup menu class
VkMenuItem IRIX Abstract base class for all ViewKit menu classes
VkMenu IRIX Abstract base class for all ViewKit menu container objects
VkOptionMenu IRIX An option menu for use with ViewKit menu items
dthelpaction HP-UX CDE help actions
dtcalcaction HP-UX CDE calculator actions
dtprintinfoaction HP-UX CDE print job actions
dtmailaction HP-UX CDE mail actions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service