DevExpress: A scale bar that can specify a range Rangetrackbarcontrol

Source: Internet
Author: User

This article is for my. NET control Library DevExpress use notes, my devexpress version is 13.1

1. Control type full Name: DevExpress.XtraEditors.RangeTrackBarControl

2. The assembly where the control is located: Devexpress.xtraeditors.v13.1.dll

3. Category in Toolbox: Dx.13.1:common Controls

4. Control style


Description: This is a scale from 0-100 of the scale bar, to 5 for a unit set up a scale, in 0, 60, 70, 85, 100 of the scale position set up 5 labels, which write the starting score, pass, good, excellent, highest score

5, control Rangetrackbarcontrol inherit auto-control parts Trackbarcontrol,trackbarcontrol is also a control provided by DevExpress, the function of which is to provide a tick bar with only one slider

6, in the control's property settings interface, properties below have the following attributes:

    • Minimum represents the minimum scale, maximum represents the maximum scale

    • The value of Orientation is enumeration type System.Windows.Forms.Orientation, you can set whether the track bar is horizontal (horizontal) or vertical (Vertical) display

    • Tickfrequency set the distance between every two ticks, Tickstyle sets the shape of the slider on the scale bar, and the value is enumerated type System.Windows.Forms.TickStyle, divided into four cases: None, TopLeft, BottomRight, Both

7, the minimum in value determines the scale of the left slider, maximum determines the scale of the right slider

8. Click the button in the Labels property under properties to enter the Trackbarlabel collection editor. In the editor, you can add or remove labels that appear under the scale, Each label is of the DevExpress.XtraEditors.Repository.TrackBarLabel type and has the following three properties: label displays the text on the interface, value displays the corresponding tick values for the label, and visible determines whether the label is displayed. In addition to setting up here, to make the label visible also need to meet the following two conditions: the Label Value property corresponding to the scale must be visible, that is, the display on the interface of the scale, if a bar, starting from 0, the scale is 5, then the label of value 3 will not be displayed Another setting is the showlabels to be set to true under properties

Another explanation: The small arrow in the upper right corner of the control popup in the task pop-up box, also has "edit Labels" function, directly into the "Trackbarlabel Collection Editor"

The pop-up box also features populate labels, which allows you to quickly calculate the scale. After clicking on the link, the following Settings window will pop up:


After you set this method and click OK, the scale bar will look like this:

END

DevExpress: A scale bar that can specify a range Rangetrackbarcontrol

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.