Xbasic

{HSCROLL}

Syntax

{HSCROLL=% Lower, Upper % Width, Height Variable_Name }

Arguments

Lower

Numeric. The lower limit of the range of values generated by the scroll bar.

Upper

Numeric. The upper limit of the range of values generated by the scroll bar.

Width

Numeric. The width of the scroll bar in characters, by default using the size of Arial 8 point characters.

Height

Numeric. The height of the scroll bar in lines, by default using the size of Arial 8 point characters.

Variable_Name

Character. The name of the variable set by the scroll bar.

Description

The {HSCROLL} command displays a horizontal scroll bar.

Example

This dialog shows a horizontal scroll bar that is 50 characters wide, 1 line high, and sets a variable between 1 and 100.

hvarbvar = 1
ui_dlg_box("{HSCROLL}",<<%dlg%
{wrap=50}
As you move the horizontal scroll bar, the value of the variable is changed between 1 and 100;
{LF};
{hscroll=%1,100%50,1hvarbar};
{LF};
[.20hvarbar];
%dlg%)

Limitations

Desktop applications only

See Also