Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

VDKMenu Class Reference

Provides a menu items container. More...

#include <menu.h>

Inheritance diagram for VDKMenu:

VDKObjectContainer VDKObject VDKNotCopyAble List of all members.

Public Member Functions


Detailed Description

Provides a menu items container.

PROGRAMMING TIPS
Making a menu bar should be easier than the "hard way" in GTK+. Here an example:
  MyForm::Setup()
  {
  // makes a new menu bar
  menubar = new VDKMenubar(this); 
  // makes a menu to be attached as first menu to menu bar
  menu1 = new VDKMenuItem(menubar,"_File..",mini_ofolder_xpm);
  // attach help menu to menu bar (rightmost)
  menu2 = new VDKMenuItem(menubar,"_Help",book_xpm,r_justify);
  // makes menu1 submenu
  VDKMenu *menu = new VDKMenu(this);
  menu11 = new VDKMenuItem(menu,"_Open");
  menu12 = new VDKMenuItem(menu,"_Close");
  menu->Separator();
  menu13 = new VDKMenuItem(menu,"_Quit..");
  // attach menu to menu1
  menu1->Add(menu);
  // add menubar and an empty labelto form
  Add(menubar);
  } 


Constructor & Destructor Documentation

VDKMenu::VDKMenu VDKForm owner  ) 
 

Constructor

Parameters:
owner 

VDKMenu::~VDKMenu  )  [virtual]
 

Destructor


Member Function Documentation

GtkAccelGroup* VDKMenu::AccelGroup  )  [inline]
 

Return accelerator group assigned to menu

void VDKMenu::Add VDKObject wid,
int  justify = l_justify,
int  expand = true,
int  fill = true,
int  padding = false
[virtual]
 

Add an object.

Reimplemented from VDKObjectContainer.

void VDKMenu::Popup guint  button = 0,
guint32  activate_time = 0
 

Pops menu

void VDKMenu::Separator  ) 
 

Provides a menu separator

void VDKMenu::SetFont VDKFont font  )  [virtual]
 

Sets object font

Reimplemented from VDKObject.


The documentation for this class was generated from the following files:
Generated on Sat Sep 3 12:10:19 2005 for vdk 2.4.0 by  doxygen 1.4.4