Csliderctrl (slider) Control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.