33 SLIDER_HORIZONTAL = 0,
34 SLIDER_VERTICAL = 0x00008000,
35 SLIDER_ARROW_UP = 0x00010000,
36 SLIDER_ARROW_DOWN = 0x00020000,
37 SLIDER_ARROW_LEFT = SLIDER_ARROW_UP,
38 SLIDER_ARROW_RIGHT = SLIDER_ARROW_DOWN,
39 SLIDER_INSIDE_BAR = 0x00040000,
40 SLIDER_TICKS_TOP = 0x00080000,
41 SLIDER_TICKS_BOTTOM = 0x00100000,
42 SLIDER_TICKS_LEFT = SLIDER_TICKS_TOP,
43 SLIDER_TICKS_RIGHT = SLIDER_TICKS_BOTTOM,
44 SLIDER_NORMAL = SLIDER_HORIZONTAL
73 void drawSliderHead(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
74 void drawHorzTicks(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
75 void drawVertTicks(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
80 long onPaint(
FXObject*,FXSelector,
void*);
81 long onMotion(
FXObject*,FXSelector,
void*);
82 long onMouseWheel(
FXObject*,FXSelector,
void*);
83 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
84 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
85 long onMiddleBtnPress(
FXObject*,FXSelector,
void*);
86 long onMiddleBtnRelease(
FXObject*,FXSelector,
void*);
87 long onKeyPress(
FXObject*,FXSelector,
void*);
88 long onKeyRelease(
FXObject*,FXSelector,
void*);
89 long onUngrabbed(
FXObject*,FXSelector,
void*);
90 long onAutoSlide(
FXObject*,FXSelector,
void*);
91 long onCmdSetValue(
FXObject*,FXSelector,
void*);
92 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
93 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
94 long onCmdSetLongValue(
FXObject*,FXSelector,
void*);
95 long onCmdGetLongValue(
FXObject*,FXSelector,
void*);
96 long onCmdSetRealValue(
FXObject*,FXSelector,
void*);
97 long onCmdGetRealValue(
FXObject*,FXSelector,
void*);
98 long onCmdSetIntRange(
FXObject*,FXSelector,
void*);
99 long onCmdGetIntRange(
FXObject*,FXSelector,
void*);
100 long onCmdSetRealRange(
FXObject*,FXSelector,
void*);
101 long onCmdGetRealRange(
FXObject*,FXSelector,
void*);
102 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
103 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
104 long onCmdSetTip(
FXObject*,FXSelector,
void*);
105 long onCmdGetTip(
FXObject*,FXSelector,
void*);
106 long onQueryHelp(
FXObject*,FXSelector,
void*);
107 long onQueryTip(
FXObject*,FXSelector,
void*);
110 ID_AUTOSLIDE=FXFrame::ID_LAST,
116 FXSlider(
FXComposite* p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=SLIDER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0);
119 virtual FXint getDefaultWidth();
122 virtual FXint getDefaultHeight();
125 virtual FXbool canFocus()
const;
128 virtual void layout();
131 virtual void enable();
134 virtual void disable();
137 void setValue(FXint value,FXbool notify=
false);
143 void setRange(FXint lo,FXint hi,FXbool notify=
false);
146 void getRange(FXint& lo,FXint& hi)
const { lo=range[0]; hi=range[1]; }
149 FXuint getSliderStyle()
const;
152 void setSliderStyle(FXuint style);
158 void setHeadSize(FXint hs);
164 void setSlotSize(FXint bs);
170 void setIncrement(FXint inc);
173 void setTickDelta(FXint dist);
179 void setSlotColor(FXColor clr);
197 virtual void save(
FXStream& store)
const;
FXint getHeadSize() const
Get the slider's head size.
Definition: FXSlider.h:155
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
The slider widget is a valuator widget which provides simple linear value range.
Definition: FXSlider.h:57
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
void getRange(FXint &lo, FXint &hi) const
Get the slider's current range.
Definition: FXSlider.h:146
FXint getIncrement() const
Get the slider's auto-increment/decrement value.
Definition: FXSlider.h:167
FXint getSlotSize() const
Get the slider's current slot size.
Definition: FXSlider.h:161
Definition: FX4Splitter.h:28
void setHelpText(const FXString &text)
Set the help text to be displayed on the status line.
Definition: FXSlider.h:185
FXColor getSlotColor() const
Get the current slot color.
Definition: FXSlider.h:182
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
Window Device Context.
Definition: FXDCWindow.h:48
const FXString & getHelpText() const
Get the current help text.
Definition: FXSlider.h:188
FXint getValue() const
Return slider value.
Definition: FXSlider.h:140
const FXString & getTipText() const
Get the current tooltip text value.
Definition: FXSlider.h:194
FXint getTickDelta() const
Get delta between ticks.
Definition: FXSlider.h:176
void setTipText(const FXString &text)
Set the tip text to be displayed in the tooltip.
Definition: FXSlider.h:191
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42