Scroll Bar Controls

The following lists the mandatory properties for scroll bar controls:

Scrollbar control-idx y width height

Property

Description

scrollbar

Identifies the control as a scroll bar control.

control-id

Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window.

x

Horizontal position of the upper-left corner of the control in current units.

y

Vertical position of the upper-left corner of the control in current units.

width

Width of the control in current units.

height

Height of the control in current units.

The Resource Properties Index identifies and describes the optional properties for this control.

Disabled

Font

Foregroundcolor

Group

Initialposition

Initialproportion

Initialsize

Invisible

Longcue

Name

Opaque

Orientation

Popupmenuid

Raisededge

Shortcue

Example

The following example contains a window with two scroll bar controls; the first contains only the mandatory definitions, and the second contains optional settings, including definitions for both vertical and horizontal scroll bars:

Version "3.0"
Window 1 "Control Window" 0 0 200 100
Begin
Scrollbar 1 10 10 50 25
Scrollbar 2 50 10 50 25 Begin
Backgroundcolor Rgb(128,128,128)
Foregroundcolor $ccffcc$
Initialposition 0
Initialproportion 10
Initialsize 100
Orientation Vertical
Disabled Invisible Clientedge Raisededge
End
Scrollbar 2 50 10 50 25 Begin
Backgroundcolor Rgb(128,128,128)
Foregroundcolor $ccffcc$
Initialposition 0
Initialproportion 10
Initialsize 100
Orientation Horizontal
Disabled Invisible Clientedge Raisededge
End
End