Navigation:  Reference > Form Objects >

TTrackBar

Print this Topic Previous pageReturn to chapter overviewNext page

 

This object is similar to an TTASNumEnter object in that the user sets a position and it is transformed into an integer value that your program can use.  You can also set the position in the program to display a visual value to the user.  The icon for this object is on the Additional page.

 

PALETTE ICON & EXAMPLE

 

 

PROPERTIES

The following are the properties that apply to this object.  Some are defined in Common Properties and are linked to their appropriate page.

 

Appearance

 

Ctl3D

Cursor

 

Behavior

 

Enabled

TabOrder

TabStop

Visible

 

Hint

 

Hint

ParentShowHint

ShowHint

 

Misc

 

HelpContext

Name

PopupMenu

Tag

 

Other

 

Anchors

BorderWidth

Constraints

FrequencyThis specifies how often a tick mark will appear.  This should generally be set to the same value as LineSize or PageSize.  This property can be modified during runtime.

 

LineSizeThis is the value the Position property will change each time the track bar pointer moves.  This property can be modified at runtime.

 

MaxThis is the maximum value that can be represented by the track bar.  This would be the Position property value if the pointer is all the way to the right (or top).  This property can be modified during runtime.

 

MinThe minimum value that can be represented by the track bar.  This would be the Position property value if the pointer is all the way to the left (or bottom).  This property can be modified during runtime.

 

OrientationDoes the image progress from left to right (trHorizontal - default value) or bottom to top (trVertical).  The image of the object will change when you change this property value.

 

PageSizeThis is the value the track bar pointer will be moved if the user presses the PAGEUP key (increments) or clicks on the track bar to the right (or above) its current location; or presses the PAGEDOWN key or clicks on the track bar to the left (or below) its current location.  This property can be changed during runtime.

ParentCtl3D

PositionNOTE:  This property doesn't exist on the property editor.  However, it is used by you during your program to move the track bar or read its current location.  This property can only be changed at runtime.

 

SelEndYou can use this property and SelStart to limit the track bar to a subset of the Min to Max distance displayed.  Special marks are put on the track bar to highlight the available choices.  If the Position property is less than SelStart or more than SelEnd it is reset to the proper start or end value.

 

SelStartYou can use this property and SelEnd to limit the track bar to a subset of the Min to Max distance displayed.  Special marks are put on the track bar to highlight the available choices.  If the Position property is less than SelStart or more than SelEnd it is reset to the proper start or end value.

 

SliderVisibleIf checked (set to .True.) the slider or track bar pointer is displayed.  This is the default value.  This can be modified at runtime.

 

ThumbLengthThe height (if horizontal) or width (if vertical) of the track bar in pixels.  The default value is 20.  This can be modified at runtime.

 

TickMarksWhere to display the tick marks.  The options are:  tmBoth (both sides of the bar), tmBottomRight (the right size if vertical or bottom if horizontal) and tmTopLeft (the left side if vertical or top if horizontal - the default value).

 

TickStyleHow the tick marks are to be displayed.  The options are:  tsAuto (automatically place the tick marks depending on the Frequency and LineSize properties above - the default value), tsManual (tick marks at the beginning and end) and tsNone (no tick marks).

 

Position

 

Align

Height

Left

Top

Width

 

EVENTS

There are no events for this object.

 

 


Page url: http://www.cassoftware.com/tas/manual/ttrackbar.htm