Windows control - Static text

Windows control - Static text is used to display text information.


Example

Example - Static text

To create static text

  1. In the Drawing toolbar click the button Static text Button Static text.
  2. Point the mouse cursor to the position of the first displayer corner and click.
  3. 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 the Structured variable type, you must define an item. Unique item position in a structured variable is defined by the column name (the parameter Column) and the row number (the parameter Row). For an object of the Value array, you must define the item.

Script


Reference variable

Specifies the name of the static text in the form of a 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 the user to select an 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 the user points the mouse cursor to the static text in the picture opened in the D2000 HI process.
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


Connect object palette - Properties tab

Text

A string 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 the D2000 HI process. 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 the D2000 HI process. 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 the text fonts see the topic Text fonts.


Note: Font can be modified (changed) from the picture script using the function %HI_SetFontStyle.

Napíšte komentár