21 #ifndef FXMENUBUTTON_H 22 #define FXMENUBUTTON_H 36 MENUBUTTON_AUTOGRAY = 0x00800000,
37 MENUBUTTON_AUTOHIDE = 0x01000000,
38 MENUBUTTON_TOOLBAR = 0x02000000,
40 MENUBUTTON_UP = 0x04000000,
41 MENUBUTTON_LEFT = 0x08000000,
42 MENUBUTTON_RIGHT = MENUBUTTON_LEFT|MENUBUTTON_UP,
43 MENUBUTTON_NOARROWS = 0x10000000,
44 MENUBUTTON_ATTACH_LEFT = 0,
45 MENUBUTTON_ATTACH_TOP = MENUBUTTON_ATTACH_LEFT,
46 MENUBUTTON_ATTACH_RIGHT = 0x20000000,
47 MENUBUTTON_ATTACH_BOTTOM = MENUBUTTON_ATTACH_RIGHT,
48 MENUBUTTON_ATTACH_CENTER = 0x40000000,
49 MENUBUTTON_ATTACH_BOTH = MENUBUTTON_ATTACH_CENTER|MENUBUTTON_ATTACH_RIGHT
82 long onPaint(
FXObject*,FXSelector,
void*);
83 long onUpdate(
FXObject*,FXSelector,
void*);
84 long onEnter(
FXObject*,FXSelector,
void*);
85 long onLeave(
FXObject*,FXSelector,
void*);
86 long onFocusIn(
FXObject*,FXSelector,
void*);
87 long onFocusOut(
FXObject*,FXSelector,
void*);
88 long onUngrabbed(
FXObject*,FXSelector,
void*);
89 long onMotion(
FXObject*,FXSelector,
void*);
90 long onButtonPress(
FXObject*,FXSelector,
void*);
91 long onButtonRelease(
FXObject*,FXSelector,
void*);
92 long onKeyPress(
FXObject*,FXSelector,
void*);
93 long onKeyRelease(
FXObject*,FXSelector,
void*);
94 long onHotKeyPress(
FXObject*,FXSelector,
void*);
95 long onHotKeyRelease(
FXObject*,FXSelector,
void*);
96 long onCmdPost(
FXObject*,FXSelector,
void*);
97 long onCmdUnpost(
FXObject*,FXSelector,
void*);
101 FXMenuButton(
FXComposite* p,
const FXString& text,
FXIcon* ic=
nullptr,
FXPopup* pup=
nullptr,FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD);
104 virtual void create();
107 virtual void detach();
110 virtual FXint getDefaultWidth();
113 virtual FXint getDefaultHeight();
116 virtual FXbool canFocus()
const;
119 virtual void killFocus();
122 virtual FXbool contains(FXint parentx,FXint parenty)
const;
131 void showMenu(FXbool shw);
134 FXbool isMenuShown()
const;
149 void setButtonStyle(FXuint style);
152 FXuint getButtonStyle()
const;
155 void setPopupStyle(FXuint style);
158 FXuint getPopupStyle()
const;
161 void setAttachment(FXuint att);
164 FXuint getAttachment()
const;
167 virtual void save(
FXStream& store)
const;
A label widget can be used to place a text and/or icon for explanation purposes.
Definition: FXLabel.h:64
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:42
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42