Csliderctrl(Slider)Widget
CsliderctrlCommon attributes
CsliderctrlCommon class member functions
CsliderctrlExample
I,CsliderctrCommon attributes
Orientation horizontal or vertical
Point slider Style
ToolTips scale prompt // This cannot be displayed on the video due to video recording software issues
The tick marks display dial must be used with the auto ticks attribute for validity.
Auto ticks automatically draws the dial
II,CsliderctrlCommon class member functions
Getlinesize |
Return slider step size |
Setlinesize |
Set the slider control to move the step size for the cursor |
Getpagesize |
Set the slider control's moving step for page down, page up, and mouse clicks |
Setpagesize |
Return slider step size |
Getrangemax |
Returns the maximum value that the slider can move. |
Getrangemin |
Returns the minimum value that the slider can move. |
Getrange |
Returns the maximum and minimum movable values of the slider. |
Setrangemin |
Sets the minimum position for a slider. |
Setrangemax |
Sets the maximum position for a slider. |
Setrange |
Set the maximum and minimum values that the slider can move. |
Getpos |
Obtains the position of the current slider. |
Setpos |
Set the current position of the slider. Sets the current position of the slider. |
Setticfreq |
Set dial Interval |
III,Sample Code
M_slider1.setticfreq (10); // dial Interval
M_slider1.setpos (20); // you can specify the slider position.
// Range: .. 100 new-100,100
// M_slider1.setrange (-100,100 );
M_slider1.setrangemin (-100 );
M_slider1.setrangemax (100 );
M_slider1.setpos (0 );
M_slider1.setlinesize (2); // For the cursor Area
M_slider1.setpagesize (10); // message for mouse, page down, and page up