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

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

Contents


VkOptionMenu(3x)					      VkOptionMenu(3x)


NAME    [Toc]    [Back]

     VkOptionMenu - An option menu for use with	ViewKit	menu items

INHERITS FROM    [Toc]    [Back]

     VkMenu : VkMenuItem : VkComponent : VkCallbackObject

HEADER FILE    [Toc]    [Back]

     #include <Vk/VkOptionMenu.h>

PUBLIC PROTOCOL	SUMMARY
   Constructor/Destructor
	   VkOptionMenu(VkMenuDesc *desc,
			XtPointer   defaultClientData =	NULL);

	   VkOptionMenu(const char *name = "optionMenu",
			VkMenuDesc *desc = NULL,
			XtPointer   defaultClientData =	NULL);

	   VkOptionMenu(Widget	    parent,
			VkMenuDesc *desc,
			XtPointer   defaultClientData =	NULL);

	   VkOptionMenu(Widget	    parent,
			const char *name = "optionMenu",
			VkMenuDesc *desc = NULL,
			XtPointer   defaultClientData =	NULL);

	   ~VkOptionMenu();


   Building Menus    [Toc]    [Back]
	   virtual void	 build()


   Selecting Items    [Toc]    [Back]
	   void	set(char* name);
	   void	set(int	index);
	   void	set(VkMenuItem*	item);


   Determining Selected	Items
	   int getIndex();
	   VkMenuItem *getItem();



   Setting sizes    [Toc]    [Back]
	   void	forceWidth(int width);







									Page 1






VkOptionMenu(3x)					      VkOptionMenu(3x)



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

CLASS DESCRIPTION    [Toc]    [Back]

   Deriving Subclasses
   Other Sections

FUNCTION DESCRIPTIONS    [Toc]    [Back]

   VkOptionMenu
	   VkOptionMenu(VkMenuDesc *desc,
			XtPointer   defaultClientData =	NULL);

	   VkOptionMenu(const char *name = "optionMenu",
			VkMenuDesc *desc = NULL,
		       XtPointer   defaultClientData = NULL);

	   VkOptionMenu(Widget	    parent,
			VkMenuDesc *desc,
			XtPointer   defaultClientData =	NULL);

	   VkOptionMenu(Widget	    parent,
			const char *name = "optionMenu",
			VkMenuDesc *desc = NULL,
			XtPointer   defaultClientData =	NULL);


	  Initialize an	option menu.

   ~VkOptionMenu
	   ~VkOptionMenu();


	  Cleans up any	memory allocated by an option menu.

   build
	   virtual void	 build()




   set
	   void	set(char*name);
	   void	set(int	index);
	   void	set(VkMenuItem*	item);


	  Set the currently visible menu item in an option menu	by name, index
	  or a pointer to a VkMenuItem.






									Page 2






VkOptionMenu(3x)					      VkOptionMenu(3x)



   Determining Selected	Items
	   int getIndex();


	  Get the index	of the currently selected menu item.

   getItem
	   VkMenuItem *getItem();


	  Get the currently selected VkMenuItem	menu item.

   forceWidth
	   void	forceWidth(int width);


	  Force	the width of all items in the option menu to a specific	size.

   className
	   virtual const char* className();


	  Returns "VkOptionMenu".

   menuType
	    virtual VkMenuItemType menuType ();


	  Returns VkMenuItem::OPTION.

EXAMPLES    [Toc]    [Back]

	      _optionMenu = new	VkOptionMenu(parent, "optionMenu");
	      _optionMenu->addAction("Red",
				      &SomeClass::sampleCallback,
				      (XtPointer) this);
	      _optionMenu->addAction("Green",
				      &SomeClass::sampleCallback,
				      (XtPointer) this);
	      _optionMenu->addAction("Blue",
				      &SomeClass::sampleCallback,
				      (XtPointer) this);
	      _optionMenu->set("Green");

INHERITED MEMBER FUNCTIONS    [Toc]    [Back]

   Inherited from VkMenu
	  isContainer(), addAction(), addActionWidget(),
	  addConfirmFirstAction(), addSeparator(), addLabel(), addToggle(),
	  add(), addSubmenu(), addRadioSubmenu(), registerSubmenu(),
	  findNamedItem(), removeItem(), activateItem(), deactivateItem(),
	  replace(), getItemPosition(),	operator[](), numItems(), _contents,
	  _nItems, _maxItems



									Page 3






VkOptionMenu(3x)					      VkOptionMenu(3x)



   Inherited from VkMenuItem    [Toc]    [Back]
	  show(), hide(), manageAll(), setLabel(), setPosition(), activate(),
	  deactivate(),	remove(), show(), _position, _isBuilt, _sensitive,
	  _parentMenu, _label, _isHidden, _unmanagedWidgets,
	  _numUnmanagedWidgets


   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()


CLASSES	USED BY	THIS CLASS
     VkMenuItem

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

     VkGraph

SEE ALSO    [Toc]    [Back]

      
      
     VkMenu, VkMenuItem, VkComponent
     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 4444
[ Back ]
 Similar pages
Name OS Title
VkMenuBar IRIX A ViewKit Menu Bar
VkHelpPane IRIX A menu pane that interfaces to the ViewKit help system
VkMenuItem IRIX Abstract base class for all ViewKit menu classes
VkMenu IRIX Abstract base class for all ViewKit menu container objects
optionmenu IRIX Create an option menubutton and its menu
VkPrefOption IRIX Option menu preference field
free_item OpenBSD create and destroy menu items
set_menu_spacing FreeBSD Control spacing between menu items.
set_menu_spacing OpenBSD Control spacing between menu items.
free_item FreeBSD create and destroy menu items
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service