TGMenuBar


class description - source file - inheritance tree

class TGMenuBar : public TGHorizontalFrame

    private:
protected:
virtual void AddFrame(TGFrame* f, TGLayoutHints* l = 0) public:
TGMenuBar TGMenuBar(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kHorizontalFrame|kRaisedFrame) TGMenuBar TGMenuBar(TGMenuBar&) virtual void ~TGMenuBar() virtual void AddPopup(TGHotString* s, TGPopupMenu* menu, TGLayoutHints* l) virtual void AddPopup(const char* s, TGPopupMenu* menu, TGLayoutHints* l) static TClass* Class() virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleKey(Event_t* event) virtual Bool_t HandleMotion(Event_t* event) virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

private:
protected:
TGMenuTitle* fCurrent current menu title TList* fTitles list of menu titles Bool_t fStick stick mode (popup menu stays sticked on screen) static Cursor_t fgDefaultCursor public:

Class Description

                                                                      
 TGMenuBar, TGPopupMenu, TGMenuTitle and TGMenuEntry                  
                                                                      
 This header contains all different menu classes.                     
                                                                      
 Selecting a menu item will generate the event:                       
 kC_COMMAND, kCM_MENU, menu id, user data.                            
                                                                      


TGMenuBar(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options) : TGHorizontalFrame(p, w, h, options | kHorizontalFrame)
 Create a menu bar object.

~TGMenuBar()
 Delete menu bar object. Removes also the hot keys from the main frame,
 so hitting them will not cause the menus to popup.

void AddPopup(TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l)
 Add popup menu to menu bar. The hot string will be adopted by the
 menubar (actually the menu title) and deleted when possible.

void AddPopup(const char *s, TGPopupMenu *menu, TGLayoutHints *l)
 Add popup menu to menu bar.

void AddFrame(TGFrame *f, TGLayoutHints *l)
 Private version of AddFrame for menubar, to make sure that we
 indeed only add TGMenuTitle objects to it.

Bool_t HandleMotion(Event_t *event)
 Handle a mouse motion event in a menu bar.

Bool_t HandleButton(Event_t *event)
 Handle a mouse button event in a menubar.

Bool_t HandleKey(Event_t *event)
 Handle keyboard events in a menu bar.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
          TGMenuBar TGMenuBar(TGMenuBar&)


Author: Fons Rademakers 09/01/98
Last update: root/gui:$Name: $:$Id: TGMenu.cxx,v 1.4 2000/10/17 12:34:53 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.