scrollbarcontrol

Inherits

windowcontrol

Context

windowinstance

scrollbarcontrol creates a vertical scrollbar control.

The target control must be specified. All control types do not support scrolling, and in these cases the activation of this control does nothing.

The scrollbar control will automatically hide itself if the target control does not exist, does not support scrolling, or is not currently tall enough for scrolling.


Definition

<scrollbarcontrol name="..." > <target > <name > ... </name> </target> <normal > <name > ... </name> <offset > ... </offset> <minimum > <height > ... </height> </minimum> </normal> <pressed > <name > ... </name> <offset > ... </offset> </pressed> </scrollbarcontrol>

<scrollbarcontrol name="..." >

 

<target >

Defines the target control for the scrolling operation

<name > ... </name>

Name of the target control in the same window instance with the scrollbar control

</target>

 

<normal >

Defines the frame graphic to use for the scrollbar button.

<name > ... </name>

Frame for scrollbar button

<offset > ... </offset>

A comma separated list of four numbers specifying the pixel margins applied to the frame when drawn

<minimum >

Defines minimum size of scrollbar button.

<height > ... </height>

 

</minimum>

 

</normal>

 

<pressed >

Defines the frame graphic to use for the scrollbar button when pressed. Optional.

<name > ... </name>

Frame for scrollbar button

<offset > ... </offset>

A comma separated list of four numbers specifying the pixel margins applied to the frame when drawn

</pressed>

 

</scrollbarcontrol>

 


Interface

setTarget

function setTarget(ctrl)

Sets the target control for the scrollbar.

Parameters

ctrl   (windowcontrol)   

A reference to a windowcontrol object representing a control within the parent window.