34 SPIN_CYCLIC = 0x00020000,
35 SPIN_NOTEXT = 0x00040000,
36 SPIN_NOMAX = 0x00080000,
37 SPIN_NOMIN = 0x00100000
61 long onUpdIncrement(
FXObject*,FXSelector,
void*);
62 long onCmdIncrement(
FXObject*,FXSelector,
void*);
63 long onUpdDecrement(
FXObject*,FXSelector,
void*);
64 long onCmdDecrement(
FXObject*,FXSelector,
void*);
65 long onChgEntry(
FXObject*,FXSelector,
void*);
66 long onCmdEntry(
FXObject*,FXSelector,
void*);
67 long onWheelEntry(
FXObject*,FXSelector,
void*);
68 long onKeyPress(
FXObject*,FXSelector,
void*);
69 long onKeyRelease(
FXObject*,FXSelector,
void*);
70 long onCmdSetValue(
FXObject*,FXSelector,
void*);
71 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
72 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
73 long onCmdSetLongValue(
FXObject*,FXSelector,
void*);
74 long onCmdGetLongValue(
FXObject*,FXSelector,
void*);
75 long onCmdSetIntRange(
FXObject*,FXSelector,
void*);
76 long onCmdGetIntRange(
FXObject*,FXSelector,
void*);
77 long onFocusSelf(
FXObject*,FXSelector,
void*);
80 ID_INCREMENT=FXPacker::ID_LAST,
88 FXSpinner(
FXComposite *p,FXint cols,
FXObject *tgt=
nullptr,FXSelector sel=0,FXuint opts=SPIN_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);
91 virtual void layout();
94 virtual void disable();
97 virtual void enable();
100 virtual FXint getDefaultWidth();
103 virtual FXint getDefaultHeight();
106 virtual void setFocus();
109 virtual void killFocus();
112 void increment(FXbool notify=
false);
115 void incrementByAmount(FXint amount,FXbool notify=
false);
118 void decrement(FXbool notify=
false);
121 void decrementByAmount(FXint amount,FXbool notify=
false);
124 FXbool isCyclic()
const;
127 void setCyclic(FXbool cyclic);
130 FXbool isTextVisible()
const;
133 void setTextVisible(FXbool flag);
136 virtual void setValue(FXint value,FXbool notify=
false);
142 void setRange(FXint lo,FXint hi,FXbool notify=
false);
145 void getRange(FXint& lo,FXint& hi)
const { lo=range[0]; hi=range[1]; }
148 void setIncrement(FXint increment);
154 void setFont(
FXFont *fnt);
160 void setHelpText(
const FXString& text);
163 const FXString& getHelpText()
const;
166 void setTipText(
const FXString& text);
172 void setSpinnerStyle(FXuint style);
175 FXuint getSpinnerStyle()
const;
178 void setEditable(FXbool edit=
true);
181 FXbool isEditable()
const;
184 void setUpArrowColor(FXColor clr);
187 FXColor getUpArrowColor()
const;
190 void setDownArrowColor(FXColor clr);
193 FXColor getDownArrowColor()
const;
196 void setTextColor(FXColor clr);
199 FXColor getTextColor()
const;
202 void setSelBackColor(FXColor clr);
205 FXColor getSelBackColor()
const;
208 void setSelTextColor(FXColor clr);
211 FXColor getSelTextColor()
const;
214 void setCursorColor(FXColor clr);
217 FXColor getCursorColor()
const;
220 void setNumColumns(FXint cols);
223 FXint getNumColumns()
const;
226 virtual void save(
FXStream& store)
const;
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
Packer is a layout manager which automatically places child windows inside its area against the left...
Definition: FXPacker.h:48
FXint getValue() const
Return current value.
Definition: FXSpinner.h:139
A text field is a single-line text entry widget.
Definition: FXTextField.h:63
Spinner control.
Definition: FXSpinner.h:46
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
FXint getIncrement() const
Return spinner increment.
Definition: FXSpinner.h:151
Font class.
Definition: FXFont.h:137
void getRange(FXint &lo, FXint &hi) const
Get the spinner's current range.
Definition: FXSpinner.h:145
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42