Siemens A31003-51730-U103-7619 Manual Do Utilizador

Página de 336
The Elements of a DCO-Script
For internal use only
07/2010
5-70
OScAR-Pro Customized Operator, User Manual
  
  
  
BHB_DCO_05.fm
Controls
5.9.6
Special attributes and child nodes of Buttons
Special attributes of Buttons
Buttons have the following additional attributes:
Attribute
Description
Layout
Combobox to define how the the text and image shall be orga-
nized.
Here you can:
Image + Text (horizontal), to position first the image and 
then the text from left to right.
Image + Text (vertical), to position first the image and 
then the text from top to bottom.
Text + Image (horizontal), to position first the text and 
then the image from left to right.
Text + Image (vertical), to position first the text and then 
the image from top to bottom.
Text
Editable combobox to specify the Button title.
Here you can:
enter up to 256 characters as the Button title or
assign a Constant, Parameter or Variable of the data type 
string.
The title of a Button can be edited during the execution of the 
DCO-Script with the command„The Instruction "SetButton-
Text"“.
 
Note:
If you add a "&" sign to your string, the character that 
comes after the sign is automatically underlined. For the 
DCO-Designer to output the "&" sign on a Button, always 
make sure you enter the sign twice (e.g. &&).
If you want the text on your Button to be output in several 
lines, you can force a shift return by entering \n.
Font
Field indicating the font currently used for the title of the Button.
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").
Table 5-54
Special attributes of Buttons