Rapid-Q Documentation by William Yu (c)1999-2000 Appendix A: QTRACKBAR


QTRACKBAR Component

QTrackBar is a track bar control used to represent a position along a continuum using a slider and, optionally, tick marks.

QTrackBar Properties
FieldTypeR/WDefault




AlignINTEGERRWalNone
Align определяет как компонент располагается на родительской форме
CursorINTEGERRWcrDefault
EnabledINTEGERRWTrue
FrequencyINTEGERRW
Frequency specifies the increment between tick marks on the trackbar.
HandleINTEGERR
HeightINTEGERRW
HintSTRINGRW
LeftINTEGERRW0
LineSizeINTEGERRW1
LineSize is the amount the value of Position changes when the user presses the arrow keys.
MaxINTEGERRW10
Max specifies the maximum Position of the trackbar.
MinINTEGERRW0
Min specifies the minimum Position of the trackbar.
OrientationINTEGERRWtbHorizontal
Orientation specifies whether the trackbar is horizontal or vertical.
0 = tbHorizontal -- Min position is on the left, Max is on the right.
1 = tbVertical -- Min position is on the top, Max is on the bottom.
PageSizeINTEGERRW2
PageSize specifies the amount Position is changed when the PageUp or PageDown key is pressed, or when the bar is clicked.
ParentQFORM/QPANEL/QTABCONTROLW
PopupMenuQPOPUPMENUW
PositionINTEGERRW
Position contains the current position of the slider.
SelEndINTEGERRW
SelEnd specifies the position of the end point of the selection range.
SelStartINTEGERRW
SelStart specifies the position of the starting point of the selection range.
ShowHintINTEGERRWFalse
TabOrderINTEGERRW
TickMarksINTEGERRWtmBottomRight
TickMarks specifies the location of the tick marks.
0 = tmBottomRight -- Tick marks are on the bottom or right of the trackbar depending on the value of Orientation.
1 = tmTopLeft -- Tick marks are on the top or left of the trackbar depending on the value of Orientation.
2 = tmBoth -- Tick marks are on both sides of the trackbar.
TickStyleINTEGERRWtsAuto
TickStyle specifies how tick marks are place on the trackbar.
0 = tsNone -- No tick marks are displayed.
1 = tsAuto -- Trackbar displays tick marks automatically for each increment in its range.
2 = tsManual -- Trackbar displays tick marks at either end. Use SetTick to set a tick in other positions
TopINTEGERRW0
WidthINTEGERRW
VisibleINTEGERRWTrue


QTrackBar Methods
MethodTypeDescriptionParams




SetTickSUB (Pos%)Set a tick mark at Pos%1


QTrackBar Events
EventTypeOccurs when...Params




OnChangeVOIDTrack bar changes0


QTrackBar Примерs
CREATE Form AS QForm
  Center
  CREATE TrackBar AS QTrackBar
    ' Initialize track bar
  END CREATE
  ShowModal
END CREATE

Prev Component Содержание Next Component