Siemens A31003-51730-U103-7619 5.9.5Special attributes of Edit fields, Controls, Attribute, color

Models: A31003-51730-U103-7619

1 336
Download 336 pages 29.09 Kb
Page 136
Image 136

The Elements of a DCO-Script

Controls

5.9.5Special attributes of Edit fields

Edit fields have the following additional attributes:

Attribute

 

Description

 

 

 

Font

 

Field indicating the font currently selected for the text of the

 

 

Edit field.

 

 

To edit the font, font size or font style, simply make a double-

 

 

click on this line to open the corresponding user window with

 

 

the name "Font" (see Section 4.6.4, "Edit fonts").

 

 

 

Border style

 

Combobox to choose the style of the border surrounding the

 

 

Edit field.

 

 

Here you can:

 

 

none, if you do not want the Edit field to have a border,

 

 

simple, if you want the Edit field to be surrounded by a

 

 

simple black line, or

 

 

sunken, if you want the Edit field to have a two-color bor-

 

 

der.

 

 

 

Text color

 

Editable combobox to choose the color for the text of the Edit

 

 

field.

 

 

Here you can:

 

 

enter a color value,

 

 

click "Select color" and use the next user window to

 

 

choose a color for the text (see Section 4.6.5, "Edit col-

 

 

ors"), r

 

 

assign a Constant, Parameter or Variable of the data type

 

 

color.

 

 

The color of the text of an Edit field can be edited during the

 

 

execution of the DCO-Script with the command „The Instruc-

 

 

tion "SetEditTextColor"“.

 

 

 

Text

 

Editable combobox to enter a default text for the Edit field.

 

 

Here you can:

 

 

a string in keeping with the type that is selected for the

 

 

Edit field (see below) or

 

 

assign a Constant, Parameter or Variable of the data type

 

 

string.

 

 

The default text of an Edit field can be edited during the execu-

 

 

tion of the DCO-Script with the command „The Instruction

 

 

"SetEditText"“.

 

 

 

Table 5-53

Special attributes of Edit fields

 

07/2010

5-68

OScAR-Pro Customized Operator, User Manual

Page 136
Image 136
Siemens A31003-51730-U103-7619 5.9.5Special attributes of Edit fields, Controls, Attribute, Description, color, string