|
« rtfbox stbar »
Objects / scrollbar
scrollbar
scrollbar(objnum,coord,option)
creates a scrollbar
Parameters
| objnum | object number |
| coord | column, row, length comma or @am delimited. Length is the number of rows for vertical or the numbers of columns for horizontal direction of the object. The default direction is vertical. |
| option | options comma or @am delimited |
Options
| disable | disabled |
| drag | send drag events |
| hide | invisible |
| horz | horizontal direction |
| sizing CODE [base.objnum] | sizing specification (see sizing) |
Events
| WM_VSCROLL | Vertical scroll
Data:
dt<1> - action:
LINEUP - Up arrow has been pressed LINEDOWN - Down arrow has been pressed PAGEUP - The area above the slider has been clicked PAGEDOWN - The area below the slider has been clicked DRAG - The slider has been dragged ENDSCROLL - The mouse button has been released
dt<2> - current position
dt<3> - scroll info in values:
1 - number of units in the scrollbar 2 - number of units in the scroll page 3 - position of the slider |
| WM_HSCROLL | Horizontal scroll
Data:
dt<1> - action:
LINELEFT - Left arrow has been pressed LINERIGHT - Rright arrow has been pressed PAGELEFT - The area on the left from the slider has been pressed PAGERIGHT - The area on the right from the slider has been pressed DRAG - The slider has been dragged ENDSCROLL - The mouse button has been released
dt<2> - current position
dt<3> - scroll info in values:
1 - number of units in the scrollbar 2 - number of units in the scroll page 3 - position of the slider |
Functions
| delobj | deletes object |
| do | executes an additional action |
| getdt | returns additional data |
| modify | modifies object's properties |
| setscroll | sets scroll info for a scrollbar |
| setscrollpos | sets slider position in a scrollbar |
« rtfbox stbar »
|