21 #ifndef FXREALSPINNER_H 22 #define FXREALSPINNER_H 34 REALSPIN_CYCLIC = 0x00020000,
35 REALSPIN_NOTEXT = 0x00040000,
36 REALSPIN_NOMAX = 0x00080000,
37 REALSPIN_NOMIN = 0x00100000,
38 REALSPIN_LOG = 0x00200000
63 long onUpdIncrement(
FXObject*,FXSelector,
void*);
64 long onCmdIncrement(
FXObject*,FXSelector,
void*);
65 long onUpdDecrement(
FXObject*,FXSelector,
void*);
66 long onCmdDecrement(
FXObject*,FXSelector,
void*);
67 long onChgEntry(
FXObject*,FXSelector,
void*);
68 long onCmdEntry(
FXObject*,FXSelector,
void*);
69 long onWheelEntry(
FXObject*,FXSelector,
void*);
70 long onKeyPress(
FXObject*,FXSelector,
void*);
71 long onKeyRelease(
FXObject*,FXSelector,
void*);
72 long onCmdSetValue(
FXObject*,FXSelector,
void*);
73 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
74 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
75 long onCmdSetLongValue(
FXObject*,FXSelector,
void*);
76 long onCmdGetLongValue(
FXObject*,FXSelector,
void*);
77 long onCmdSetIntRange(
FXObject*,FXSelector,
void*);
78 long onCmdGetIntRange(
FXObject*,FXSelector,
void*);
79 long onCmdSetRealValue(
FXObject*,FXSelector,
void*);
80 long onCmdGetRealValue(
FXObject*,FXSelector,
void*);
81 long onCmdSetRealRange(
FXObject*,FXSelector,
void*);
82 long onCmdGetRealRange(
FXObject*,FXSelector,
void*);
83 long onFocusSelf(
FXObject*,FXSelector,
void*);
86 ID_INCREMENT=FXPacker::ID_LAST,
94 FXRealSpinner(
FXComposite *p,FXint cols,
FXObject *tgt=
nullptr,FXSelector sel=0,FXuint opts=REALSPIN_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);
97 virtual void layout();
100 virtual void disable();
103 virtual void enable();
106 virtual FXint getDefaultWidth();
109 virtual FXint getDefaultHeight();
112 virtual void setFocus();
115 virtual void killFocus();
118 void increment(FXbool notify=
false);
121 void incrementByAmount(FXdouble amount,FXbool notify=
false);
124 void decrement(FXbool notify=
false);
127 void decrementByAmount(FXdouble amount,FXbool notify=
false);
130 FXbool isCyclic()
const;
133 void setCyclic(FXbool cyclic);
136 FXbool isTextVisible()
const;
139 void setTextVisible(FXbool flag);
142 virtual void setValue(FXdouble value,FXbool notify=
false);
148 void setRange(FXdouble lo,FXdouble hi,FXbool notify=
false);
151 void getRange(FXdouble& lo,FXdouble& hi)
const { lo=range[0]; hi=range[1]; }
154 void setIncrement(FXdouble increment);
160 void setGranularity(FXdouble gr);
166 void setFont(
FXFont *fnt);
172 void setHelpText(
const FXString& text);
175 const FXString& getHelpText()
const;
178 void setTipText(
const FXString& text);
184 void setSpinnerStyle(FXuint style);
187 FXuint getSpinnerStyle()
const;
190 void setEditable(FXbool edit=
true);
193 FXbool isEditable()
const;
196 void setUpArrowColor(FXColor clr);
199 FXColor getUpArrowColor()
const;
202 void setDownArrowColor(FXColor clr);
205 FXColor getDownArrowColor()
const;
208 void setTextColor(FXColor clr);
211 FXColor getTextColor()
const;
214 void setSelBackColor(FXColor clr);
217 FXColor getSelBackColor()
const;
220 void setSelTextColor(FXColor clr);
223 FXColor getSelTextColor()
const;
226 void setCursorColor(FXColor clr);
229 FXColor getCursorColor()
const;
232 void setNumColumns(FXint cols);
235 FXint getNumColumns()
const;
238 virtual void save(
FXStream& store)
const;
Real Spinner control.
Definition: FXRealSpinner.h:47
void getRange(FXdouble &lo, FXdouble &hi) const
Get the spinner's current range.
Definition: FXRealSpinner.h:151
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
A text field is a single-line text entry widget.
Definition: FXTextField.h:63
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
FXdouble getGranularity() const
Return spinner granularity.
Definition: FXRealSpinner.h:163
FXdouble getIncrement() const
Return spinner increment.
Definition: FXRealSpinner.h:157
Font class.
Definition: FXFont.h:137
FXdouble getValue() const
Return current value.
Definition: FXRealSpinner.h:145
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42