33 scrollbar
A scrollbar can be used as an analog announcing object or as an analog regulator. It may be horizontally or vertically aligned.
Definition
{ export | reexport } { model } scrollbar { <Identifier> } { <standard attributes> <plain attributes> <geometry attributes> <hierarchy attributes> <layout attributes> <object-specific attributes> }
Events
Children
Parent
Menu
33.1 Attributes
Attribute |
RLD |
PID |
Properties |
Short Description |
---|---|---|---|---|
string object |
string text |
S.G/D/C |
overwrites the Automation Identifier for Microsoft UI Automation |
|
object string |
text string |
S.G/D/C |
overwrites the Automation Name for Microsoft UI Automation |
|
identifier |
accel |
S,G/D/C |
accelerator of object |
|
boolean |
boolean |
S,G/D/C |
scrollbar arrows |
|
identifier |
color |
S,G/D/C |
background color of object |
|
class |
class |
-,G/-/- |
class/id of object |
|
identifier |
instance |
-,G/-/- |
control currently belonging to object |
|
identifier |
cursor |
S,G/D/C |
cursor belonging to object |
|
integer |
integer |
S,G/D/C |
position of scrollbar slider |
|
boolean |
boolean |
S,G/-/- |
cut operation not yet carried out |
|
boolean |
boolean |
-,G/-/- |
changing state during cut operation |
|
identifier |
instance |
-,G/-/- |
dialog to which the object belongs |
|
integer |
integer |
S,G/D/C |
justification of scrollbar |
|
object |
document |
S,G/-/- |
accesses the I-th XML Document |
|
boolean |
boolean |
-,G/-/- |
returns if the object class is an USW class |
|
class |
class |
-,G/-/- |
returns the I-th registered USW class |
|
identifier |
color |
S,G/D/C |
foreground color |
|
object |
record |
S,G/-/C |
accesses the first record of an object |
|
boolean |
boolean |
S,G/-/C |
input focus on object |
|
identifier |
func |
S,G/D/C |
function belonging to object |
|
identifier |
instance |
-,G/-/- |
object groupbox |
|
integer |
integer |
S,G/D/C |
height of object |
|
string identifier |
string text |
S,G/D/C |
help text of object |
|
integer index |
integer index |
-,G/-/- |
returns or sets the first record of an object |
|
string |
string |
S,G/D/C |
name/identifier of object |
|
object |
record |
S,G/-/C |
accesses the last record of an object |
|
object |
object |
-,G/-/- |
layoutbox of object |
|
integer |
integer |
S,G/D/C |
value by which scrollbar changes when scrolling line by line |
|
boolean |
boolean |
S,G/D/- |
defers the display of a visibly created object |
|
integer |
integer |
S,G/D/C |
maximal scrollbar value |
|
attribute |
attribute |
-,G/-,- |
user-defined attribute [I] of object |
|
integer |
integer |
-,G/-,- |
number of user-defined attributes |
|
identifier |
instance |
S,G/D/C |
object menu |
|
integer |
integer |
S,G/D/C |
minimal scrollbar value |
|
identifier |
instance |
S,G/D/C |
model belonging to object |
|
object |
object |
-,G/-/- |
standard value of attribute is true |
|
boolean |
boolean |
S,G/D/- |
special options of object |
|
integer |
integer |
S,G/D/C |
value by which scrollbar changes when scrolling page by page |
|
identifier |
instance |
S,G/-/- |
parent of object |
|
boolean |
boolean |
S,G/D/C |
positions refer to grid |
|
integer |
integer |
-,G/-/- |
real height of object |
|
boolean |
boolean |
-,G/-/- |
real selectivity of object |
|
boolean |
boolean |
-,G/-/- |
real visibility of object |
|
integer |
integer |
-,G/-/- |
real width of object |
|
integer |
integer |
-,G/-/- |
real distance from left (in pixel) |
|
integer |
integer |
-,G/-/- |
real distance from top (in pixel) |
|
object |
record |
S,G/-/C |
accesses the I-th record of an object |
|
integer |
integer |
-,G/-/- |
queries the number of child records |
|
integer |
scope |
-,G/-/- |
queries the object type (Default, Model or instance) |
|
boolean |
boolean |
S,G/D/C |
selectivity of object |
|
boolean |
boolean |
S,G/D/C |
size refers to grid of parent object |
|
string object |
string text |
S,G/-/C |
text to be displayed in statusbar |
|
object |
object |
-,G/-/- |
toolbar of object |
|
.toolhelp |
text |
text |
S,G/-/- |
specified text to be displayed in pop-up |
anyvalue |
anyvalue |
S,G/D/C |
object userdata (any DM datatype) |
|
boolean |
boolean |
S,G/D/C |
visibility of object |
|
integer may be 0 |
integer |
S,G/D/C |
actual width of object |
|
identifier |
instance |
-,G/-/- |
window to which object belongs |
|
integer (-1, 0, 1) |
integer |
S,G/D/C |
definition type of x-coordinates |
|
integer |
integer |
S,G/D/C |
x-coordinate, distance from left |
|
integer |
integer |
S,G/D/C |
x-coordinate, distance from right |
|
integer (-1, 0, 1) |
integer |
S,G/D/C |
definition type of y-coordinates |
|
integer |
integer |
S,G/D/C |
y-coordinate, distance from bottom |
|
integer |
integer |
S,G/D/C |
y-coordinate, distance from top |
33.2 Specific Attributes
Note for IDM on Microsoft Windows
If the attribute .arrows is set to false, the IDM uses the Windows object "slider" instead of the object "scrollbar".
See Also
Attribute .arrows
Scrollbar attributes:
Note
The size of a scrollbar slider is calculated on the basis of .maxvalue, .minvalue and .pagemotion. If the entire area over which the slider can navigate is 1 pixel long, the calculation is as follows:
slider size = 1*.pagemotion/(.maxvalue-.minvalue),
if necessary the result is rounded up or down.
The relation of the slider size to the display area is similar to the relation of .pagemotion to the difference of .maxvalue and .minvalue.
This calculation is valid for scrollbars as objects as well as for scrollbars attached to objects.
However, this calculation is not valid for the so-called "scale widgets" (.arrows = false), which have a fixed size.
33.3 Example
dialog D color Red "RED", grey(0); window Wn { .width 355; .height 180; .title "Beispielfenster"; child scrollbar Sb1 { .fgc Red; .bgc Red; .xleft 66; .ytop 89; .arrows false; .direction 2; .curvalue 50; } }