Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

SliderCtrl

 

class SliderCtrl : public Ctrl

SliderCtrl is a widget that allows entering an integer value by dragging a thumb.

 

 

Derived from Ctrl

 

 

Public Member List

 

void Inc()

Increments slider value by Step.

 


 

void Dec()

Decrements slider value by Step.

 


 

SliderCtrl& MinMax(int _min, int _max)

Sets the minimum (thumb in leftmost position) and maximum (thumb in rightmost position) values. Returns *this.

 


 

SliderCtrl& Range(int max)

Same as MinMax(0, max).

 


 

int GetMin() const

Returns minimum value.

 


 

int GetMax() const

Returns maximum value.

 


 

bool IsVert() const

Sets the step used in Inc and Dec methods. If r is true, SliderCtrl rounds the value to step multiplies even when dragging the thumb by mouse.

 


 

int GetStep() const

Returns current step.

 


 

bool IsRoundStep() const

Tests whether step rounding is active.

 

 

Last edit by cxl on 12/02/2017. Do you want to contribute?. T++