35 spinbox
A spinbox is a container object consisting of two arrow keys and which has exactly one child. This child must be a single-line edittext or statictext used to indicate the currently set value. If a value of the spinbox is being changed – by using an arrow key or by assigning a new value – the contents of the field will be updated automatically.
Definition
{ export | reexport } { model } spinbox { <Identifier> } { <standard attributes> <plain attributes> <geometry attributes> <hierarchy attributes> <layout attributes> <text attributes> <object-specific attributes> }
Events
Children
1 edittext or 1 statictext
Parent
Menu
Methods
35.1 Attributes
Attribute |
RSD |
PSD |
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 |
|
integer |
integer |
S,G/D/C |
current value at style = string |
|
enum |
enum |
S,G/D/C |
defines the style, i.e. representation and characteristics of the borders (since IDM version A.06.01.a) |
|
object |
object |
S,G/-/C |
accesses the I-th child object |
|
integer |
integer |
-,G/-/- |
queries the number of child objects |
|
class |
class |
-,G/-/- |
object class |
|
identifier |
instance |
-,G/-/- |
control the object currently belongs to |
|
integer |
integer |
S,G/D/C |
current value at style <> string |
|
boolean |
boolean |
S,G/-/- |
cut operation has not been executed yet |
|
boolean |
boolean |
-,G/-/- |
changing state during a cut operation |
|
integer |
integer |
S,G/D/C |
value that indicates the number of steps |
|
identifier |
instance |
-,G/-/- |
object dialog |
|
integer |
integer |
S,G/D/C |
alignment of spinbuttons |
|
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 |
|
object |
instance |
S,G/-/- |
key focus of object |
|
object |
object |
S,G/-/C |
accesses the first child object |
|
object |
record |
S,G/-/C |
accesses the first record of an object |
|
identifier |
font |
S,G/D/C |
object font |
|
integer |
integer |
S,G/D/C |
object height |
|
integer |
integer |
S,G/D/C |
number of text elements |
|
integer |
integer |
-,G/-/- |
current index of object in children list of its parent |
|
string |
string |
S,G/D/C |
name (identifier) of object |
|
object |
object |
S,G/-/C |
accesses the last child object |
|
object |
record |
S,G/-/C |
accesses the last record of an object |
|
boolean |
boolean |
S,G/D/- |
defers the display of a visibly created object |
|
integer |
integer |
S,G/D/C |
maximum value at style <> string |
|
attribute |
attribute |
-,G/-/- |
i-th user-defined attribute of object |
|
integer |
integer |
-,G/-/- |
number of user-defined attributes |
|
integer |
integer |
S,G/D/C |
minimum value of style <> string |
|
identifier |
instance |
S,G/D/C |
model belonging to object |
|
identifier |
instance |
-,G/-/- |
notepage the object currently belongs to |
|
identifier |
instance |
S,G/-/- |
parent of object |
|
integer |
integer |
-,G/-/- |
real height of object |
|
boolean |
boolean |
-,G/-/- |
real visibility of object |
|
integer |
integer |
-,G/-/- |
real width of object |
|
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 |
selectability of object (= always false) |
|
string identifier |
string text |
S,G/D/C |
text to appear in the statusbar |
|
datatype |
datatype |
S,G/D/C |
defines the spinbox type |
|
string identifier |
string text |
S,G/D/C |
individual text |
|
object |
tile |
S,G/D/C |
tile resource used as background image |
|
enum |
enum |
S,G/D/C |
controls how the background image set in .tile is arranged |
|
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 |
userdata of object of any datavalue |
|
boolean |
boolean |
S,G/D/C |
visibility of object |
|
integer |
integer |
-,G/-/- |
width of object |
|
identifier |
instance |
-,G/-/- |
queries window of object |
|
boolean |
boolean |
S,G/D/C |
determines whether a wraparound is possible |
|
integer |
integer |
S,G/D/C |
unit in x direction |
|
integer |
integer |
S,G/D/C |
unit in y direction |
35.2 Specific Attributes
.wrap
This attribute for the spinbox controls whether a circular spinning is to be carried out (.wrap = true), or if the spinning is to be stopped once the spinning limits are reached (.wrap = false).
This attribute has the value true per default.
.deltavalue
This attribute specifies the difference value by which .curvalue is to be increased or decreased each step.
.borderstyle
Attribute is supported, but only border_none and border_toolkit are permitted. border_plain, border_raised and border_sunken are mapped to border_toolkit.
35.3 Example
dialog Spinbox
{
}
color White "WHITE", grey(0);
window Wn
{
.xleft 73;
.width 260;
.ytop 29;
.height 222;
.title "TestWindow";
child spinbox Sp1
{
.xleft 62;
.ytop 64;
.curvalue 1;
child edittext
{
.xauto 0;
.xleft 0;
.xright 0;
.yauto 0;
.ytop 0;
.ybottom 0;
.content "1";
}
}
child spinbox Sp2
{
.xleft 62;
.width 100;
.ytop 113;
.style string;
.maxvalue 7;
.text[1] "Monday";
.text[2] "Tuesday";
.text[3] "Wednesday";
.text[4] "Thursday";
.text[5] "Friday";
.text[6] "Saturday";
.text[7] "Sunday";
.activeitem 1;
child edittext Et2
{
.xauto 0;
.xleft 0;
.xright 0;
.yauto 0;
.ytop 0;
.ybottom 0;
.content "Monday";
}
}
}