2#include "GUISliderOwnerDrawn.h"
9 class FL_EXPORT CGUISliderOwnerDrawnDraggableSpin :
public CGUISliderOwnerDrawnBase
25 CGUISliderOwnerDrawnDraggableSpin(CWnd* pParentWnd, EOrientation eOrientation = EOrientation_Horizontal);
34 virtual ~CGUISliderOwnerDrawnDraggableSpin();
47 virtual const CResult CalcSliderRegion(CRect* pRect)
override;
58 virtual void Draw(CDC* pDC)
const override;
71 void SetRangeMin(T tMin,
bool bRedraw =
false);
84 void SetRangeMax(T tMax,
bool bRedraw =
false);
99 void SetRange(T tMin, T tMax,
bool bRedraw =
false);
110 T GetRangeMax()
const;
121 T GetRangeMin()
const;
134 void GetRange(T& tMin, T& tMax)
const;
147 void SetUnit(T tUnit,
bool bRedraw =
false);
172 void SetValue(T tValue,
bool bRedraw,
bool bSendMessage =
true);
185 void IncreaseValue(T tValue,
bool bRedraw);
198 void DecreaseValue(T tValue,
bool bRedraw);
211 void IncreaseTick(int32_t i32Tick,
bool bRedraw);
224 void DecreaseTick(int32_t i32Tick,
bool bRedraw);
237 void IncreasePos(int32_t i32PosDelta,
bool bRedraw);
250 void DecreasePos(int32_t i32PosDelta,
bool bRedraw);
270 virtual void UpdateSlider()
override;
283 T GetRemainder(T tValue)
const;
296 virtual void OnMouseWheel(
const CPoint& ptPoint,
bool bUpWheel);
297 virtual void OnLButtonDown(
const CPoint& ptPoint)
override;
298 virtual void OnLButtonUp(
const CPoint& ptPoint)
override;
299 virtual void OnMouseMove(
const CPoint& ptPoint)
override;
301 virtual void ShowText(
bool bShow =
true);
302 virtual bool IsTextVisible()
const;
313 virtual void SetSpinIcon(ESpinIcon eSpinIcon = ESpinIcon_UpDownArrow_Triangle);
326 virtual ESliderArea HitTest(
const CPoint& ptPoint)
const override;
327 virtual void SetHitArea(ESliderArea eHitArea,
bool bRedraw =
true)
override;
330 virtual void SetPos(int32_t i32Pos,
bool bSetValue,
bool bSendMsg,
bool bRedraw)
override;
339 CRect m_arrRtSpin[2];
340 int32_t m_i32SpinState;
ESpinIcon
Icons for the spin control button.
Definition GUIDefinitions.h:10008
ESliderArea
Scroll Bar Area.
Definition GUIDefinitions.h:9851
@ ShowText
Show the text(figure name, figure text) on image.