21 #ifndef FXOPTIONMENU_H 22 #define FXOPTIONMENU_H 36 OPTIONMENU_TOOLBAR = 0x00800000,
37 OPTIONMENU_NOGLYPH = 0x01000000,
53 long onPaint(
FXObject*,FXSelector,
void*);
54 long onEnter(
FXObject*,FXSelector,
void*);
55 long onLeave(
FXObject*,FXSelector,
void*);
56 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
57 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
58 long onKeyPress(
FXObject*,FXSelector,
void*);
59 long onKeyRelease(
FXObject*,FXSelector,
void*);
60 long onHotKeyPress(
FXObject*,FXSelector,
void*);
61 long onHotKeyRelease(
FXObject*,FXSelector,
void*);
65 FXOption(
FXComposite* p,
const FXString& text,
FXIcon* ic=
nullptr,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT,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);
68 virtual FXint getDefaultWidth();
71 virtual FXint getDefaultHeight();
74 virtual FXbool canFocus()
const;
77 virtual void setFocus();
80 virtual void killFocus();
83 void setSelBackColor(FXColor clr);
89 void setSelTextColor(FXColor clr);
112 long onPaint(
FXObject*,FXSelector,
void*);
113 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
114 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
115 long onEnter(
FXObject*,FXSelector,
void*);
116 long onLeave(
FXObject*,FXSelector,
void*);
117 long onFocusIn(
FXObject*,FXSelector,
void*);
118 long onFocusOut(
FXObject*,FXSelector,
void*);
119 long onMotion(
FXObject*,FXSelector,
void*);
120 long onKeyPress(
FXObject*,FXSelector,
void*);
121 long onKeyRelease(
FXObject*,FXSelector,
void*);
122 long onCmdPost(
FXObject*,FXSelector,
void*);
123 long onCmdUnpost(
FXObject*,FXSelector,
void*);
124 long onQueryHelp(
FXObject*,FXSelector,
void*);
125 long onQueryTip(
FXObject*,FXSelector,
void*);
126 long onCmdSetValue(
FXObject*,FXSelector,
void*);
127 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
128 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
129 long onMouseWheel(
FXObject*,FXSelector,
void*);
133 FXOptionMenu(
FXComposite* p,
FXPopup* pup=
nullptr,FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT,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);
136 virtual void create();
139 virtual void detach();
142 virtual void destroy();
145 virtual void layout();
148 virtual void killFocus();
151 virtual FXint getDefaultWidth();
154 virtual FXint getDefaultHeight();
157 virtual FXbool contains(FXint parentx,FXint parenty)
const;
160 FXOption *getItem(FXint index)
const;
163 void setCurrent(
FXOption *win,FXbool notify=
false);
169 void setCurrentNo(FXint no,FXbool notify=
false);
172 FXint getCurrentNo()
const;
175 FXint getNumOptions()
const;
184 virtual FXbool canFocus()
const;
187 FXbool isPopped()
const;
190 virtual void save(
FXStream& store)
const;
FXColor getSelBackColor() const
Return the selection background color.
Definition: FXOptionMenu.h:86
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
Option Menu Button.
Definition: FXOptionMenu.h:42
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
FXColor getSelTextColor() const
Return the selection text color.
Definition: FXOptionMenu.h:92
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42