37 statictext
The keyword statictext is used for the definition of the text which is not interactively modifiable by the user. Single-line texts can be positioned and displayed in one window.
Definition
{ export | reexport } { model } statictext { <Identifier> } { <standard attributes> <plain attributes> <geometry attributes> <hierarchy attributes> <layout attributes> <text attributes> <object-specific attributes> }
Events
Children
Parent
Menu
37.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 |
|
integer (-1, 0, 1) |
integer |
S,G/D/C |
alignment of text |
|
identifier |
color |
S,G/D/C |
background color |
|
class |
class |
-,G/-/- |
object class |
|
identifier |
instance |
-,G/-/- |
control the object currently belongs to |
|
identifier |
cursor |
S,G/D/C |
cursor belonging to object |
|
boolean |
boolean |
S,G/-/- |
cut operation has not been executed yet |
|
boolean |
boolean |
-,G/-/- |
changing state during a cut operation |
|
integer |
integer |
S,G/-/C |
controls appearance of statictext |
|
identifier |
instance |
-,G/-/- |
dialog to which the object belongs |
|
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 |
|
boolean |
boolean |
S,G/-/- |
defines if a mouse click into an object’s client area activates the object | |
identifier |
font |
S,G/D/C |
object font |
|
identifier |
func |
S,G/D/C |
function belonging to object |
|
identifier |
instance |
-,G/-/- |
object groupbox |
|
integer |
integer |
S,G/D/C |
object height |
|
string identifier |
string text |
S,G/D/C |
help text of 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 |
|
boolean |
boolean |
S,G/D/- |
defers the display of a visibly created object |
|
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 |
|
identifier |
instance |
S,G/D/C |
model belonging to object |
|
object |
object |
-,G/-/- |
notepage which object currently belongs to |
|
boolean |
boolean |
S,G/D/- |
special options of object |
|
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 |
|
string identifier |
string text |
S,G/D/C |
static text of object |
|
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 |
37.2 Specific Attributes
These attributes define the position and the size of the statictext. If .height or .width is specified as 0, the DM calculates the size of the statictext on the basis of the actual font.
The statictext if it is the child of a statusbar requires the additional attribute .depth. This attribute controls the appearance of the statictext.
The value range of this attribute is integer, the default is 0. Negative values mean that the statictext will be displayed intaglio in contrast to the parent object. Positive values mean that the statictext will be displayed in highlighted form. The value corresponds to the negative values used for the highlighting. The attribute is inherited as all other attributes.
This attribute will only have an effect if the statictext is a child of an statusbar.
The attribute .options can have the following values:
option_index |
Meaning |
---|---|
the statictext will be displayed as a widget (only with Motif) |
37.3 Example
Text in a window
window MAIN
{
.title "main window";
child statictext FixText
{
.xleft 10;
.ytop 10;
.text "Smith Ltd.";
}
}