vsTASKER 7 User Manual
×
Menu
Index

Properties

 
Properties
1

Name

1. Name
Name of the Label. Must be unique whatever its type.
vsTASKER will generate a class whose name will be <Name>_Spt. For the moment, this class will inherit from Vt_Sprite class.
Any Sprite can be accessed using its name in a generated union named s.
 
2

Caption

2. Caption
Put here the text that will be displayed on the HMI.
This can be modified from the code of another Sprite or from any Component or Logic of the simulation with a simple call:
 
s.<Name>_Spt->db->setCaption("my new text");
 
3

Font

3. Font
Select the available font.
Default OpenGL fonts use bitmaps and vsTASKER uses glutBitmapCharacter() to render them. These fonts cannot be scaled so, have to be selected carefully.
If Stocked options is checked, vsTASKER uses glutStrokeCharacter() routine that renders a single stroked character from a specified GLUT stroke font (Roman and Mono Roman)
 
4

Color

4. Color
Select here the color of the font to be used on the HMI.
 
5

Line

5. Line
Width of the line drawing each character.
Only for Stroked fonts.
6

Size

6. Size
Set the size of the character, in pixels.
Only for Stroked fonts.
7

Angle

7. Angle
Set the angle of the character, in degrees.
Example with 45° value:
Only for Stroked fonts.
8

Center

8. Center
Coordinates on the HMI panel of the center hook.
The values can be changed here for perfect precision, or using the mouse by just selecting the hook and dragging it anywhere on the HMI.
 
9

Size

9. Size
Actual size of the Label Sprite.
Can matters if the background if filled or outlined.
 
10

Background

10. Background
Set the background style:
 
  • Outlined: use only one line of size 1 of the selected color.
  • Opaque: fill the Sprite rectangle with the selected color.
  • Transparent: same as opaque but using a transparency mask on the selected color.
 
11

Color

11. Color
Select the color to be used for the background shape.
 
12

Transparency

12. Transparency
When Transparent background is used, drag the slider to select the level of transparency from Min (opaque) to Max (pure glass).
 
13

Import/Export

13. Import/Export
Not available yet.
 
14

Hidden

14. Hidden
If checked, the label will not be displayed.
Useful at runtime to display a text on the HMI or hide it.
 
15

Read-Only

15. Read-Only
When checked, the Sprite cannot be dragged.