00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef FX_DISABLEMENUS
00025
00026 #ifndef FXMENUBAR_H
00027 #define FXMENUBAR_H
00028
00029 #ifndef FXTOOLBAR_H
00030 #include "FXToolBar.h"
00031 #endif
00032
00033 namespace FX {
00034
00035
00037 class FXAPI FXMenuBar : public FXToolBar {
00038 FXDECLARE(FXMenuBar)
00039 protected:
00040 FXMenuBar(){}
00041 private:
00042 FXMenuBar(const FXMenuBar&);
00043 FXMenuBar &operator=(const FXMenuBar&);
00044 public:
00045 long onFocusLeft(FXObject*,FXSelector,void*);
00046 long onFocusRight(FXObject*,FXSelector,void*);
00047 long onEnter(FXObject*,FXSelector,void*);
00048 long onLeave(FXObject*,FXSelector,void*);
00049 long onMotion(FXObject*,FXSelector,void*);
00050 long onButtonPress(FXObject*,FXSelector,void*);
00051 long onButtonRelease(FXObject*,FXSelector,void*);
00052 long onCmdUnpost(FXObject*,FXSelector,void*);
00053 public:
00054
00061 FXMenuBar(FXComposite* p,FXComposite* q,FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2,FXint hs=DEFAULT_SPACING,FXint vs=DEFAULT_SPACING);
00062
00067 FXMenuBar(FXComposite* p,FXuint opts,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2,FXint hs=DEFAULT_SPACING,FXint vs=DEFAULT_SPACING);
00068
00070 virtual bool contains(FXint parentx,FXint parenty) const;
00071 };
00072
00073 }
00074
00075 #endif
00076 #endif