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