Windows control - Static text
Windows control - Static text is used to display a text information.
Example
To create static text
- In the Drawing toolbar click the button Static text .
- Point the mouse cursor to the position of the first displayer corner and click.
- Point the mouse cursor to the position of the diametric displayer corner and click.
Static text parameters are being configured in the palette Connect object through the following tabs:
Connect
The Windows control has no value and therefore the parameters on this tab are meaningful only for the description of the Windows control (see the parameter Text)
Connected object
Selection of an object to connect.
When you connect the object of Structured variable type, you must define an
item. Unique item position in structured
variable is defined by the column name (the parameter Column) and the row
number (the parameter Row). For object of Value array you must define
the item.
Script
Reference variable
Specifies the name of the static text in the form of reference variable for use in the picture script.
Metadata
Assignment of application data (metadata) to a graphic object. If the object contains some metadata, the name of the first record will be displayed in the button. Multiple records are indicated by ",...".
Event
The list box allows user to select a active picture event for the static text. The list box contains the only active picture event:
Event Handler
The button opens the active picture script to define the active picture event specified by the parameter Event.
Info text/URL
Info text
Text to display as a tooltip when user points the mouse
cursor to the static text in the picture opened in
process D2000 HI.
Possibility to use the
Dictionary
(to open press CTRL+L).
URL
Definition of URL address to open a web page from a picture. The address may be set also in the picture script by the function %HI_SetOBJURL.
Properties
Text
A string, that will be displayed in the static text. The string may also display current (so-called live) values of the object defined by the parameter Connected object but such strings must be defined in a special format - for detailed information see the chapter Format masks.
Possibility to use the Dictionary (to open press CTRL+L).
Visible
If the parameter is checked, the static text will be visible after first opening the picture in process D2000 HI. The parameter can be controlled from the picture script using the function %HI_SetVisible.
Disabled
If the parameter is checked, the static text will be disabled after first opening the picture in process D2000 HI. The parameter can be controlled from the picture script using the function %HI_SetEnable.
Group
The parameter allows you to set the static text as the first control of a group of Windows controls.
Transparent
Transparent background of the
checkbox.
Note: Transparent background is used for displaying on the monitor only
(not for print).
Font
Clicking the button placed right opens a list of text fonts. A font selected from the list will be used for the static text. For more information on text fonts see the topic Text fonts.
Note: Font can be modified (changed) from the picture script using the function %HI_SetFontStyle.
0 komentárov