21 #ifndef FXTOGGLEBUTTON_H 22 #define FXTOGGLEBUTTON_H 33 TOGGLEBUTTON_AUTOGRAY = 0x00800000,
34 TOGGLEBUTTON_AUTOHIDE = 0x01000000,
35 TOGGLEBUTTON_TOOLBAR = 0x02000000,
36 TOGGLEBUTTON_KEEPSTATE= 0x04000000,
37 TOGGLEBUTTON_NORMAL = FRAME_RAISED|FRAME_THICK|JUSTIFY_NORMAL|ICON_BEFORE_TEXT
61 void press(FXuchar dn);
66 long onPaint(
FXObject*,FXSelector,
void*);
67 long onUpdate(
FXObject*,FXSelector,
void*);
68 long onEnter(
FXObject*,FXSelector,
void*);
69 long onLeave(
FXObject*,FXSelector,
void*);
70 long onFocusIn(
FXObject*,FXSelector,
void*);
71 long onFocusOut(
FXObject*,FXSelector,
void*);
72 long onUngrabbed(
FXObject*,FXSelector,
void*);
73 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
74 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
75 long onKeyPress(
FXObject*,FXSelector,
void*);
76 long onKeyRelease(
FXObject*,FXSelector,
void*);
77 long onHotKeyPress(
FXObject*,FXSelector,
void*);
78 long onHotKeyRelease(
FXObject*,FXSelector,
void*);
79 long onCheck(
FXObject*,FXSelector,
void*);
80 long onUncheck(
FXObject*,FXSelector,
void*);
81 long onQueryHelp(
FXObject*,FXSelector,
void*);
82 long onQueryTip(
FXObject*,FXSelector,
void*);
83 long onCmdSetValue(
FXObject*,FXSelector,
void*);
84 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
85 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
89 FXToggleButton(
FXComposite* p,
const FXString& text1,
const FXString& text2,
FXIcon* icon1=
nullptr,
FXIcon* icon2=
nullptr,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=TOGGLEBUTTON_NORMAL,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);
92 virtual void create();
95 virtual void detach();
98 virtual FXbool canFocus()
const;
101 virtual FXint getDefaultWidth();
104 virtual FXint getDefaultHeight();
107 void setAltTextAndHotKey(
const FXString& hotkeytext);
110 void setAltText(
const FXString& text);
116 void setAltIcon(
FXIcon* ic);
122 void setState(FXuchar s=
true,FXbool notify=
false);
128 void setAltHelpText(
const FXString& text);
134 void setAltTipText(
const FXString& text);
140 void setToggleStyle(FXuint style);
143 FXuint getToggleStyle()
const;
146 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:134
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42