@@29 Static control definition

The static control definition is used to define static control in, for example, a group box (shown below). You can create color rectangles where the color is controlled by the field value.

Syntax

syntax-staticcontroldefinition

Field ID

The field ID is the direct address to data. The field ID consists of a starting control character followed by a reference number and ends with the ending control character ampersand (&) or a new starting control character.
Note: All control characters are replaced by a space when you display the panel on-screen or print it out.

Field number

The field number defines the position of the field in the panel. You can find the field number by counting from the left to the right and from top to bottom.

You can use the field number to connect a @@ function with a field.
Note: If the field number in the @@ function and the related field do not correspond, the field is as entry field.
Use the starting control characters together with the field number.
Caution: 
Every time a new field is inserted or removed, you must recheck field positions. Therefore, you must use the field reference number or field text functions instead.

Group number

The group number is only important for radio buttons. It determines how the click and unclick of the radio buttons are performed. Radio buttons that are grouped together must have a unique group number greater than zero. To move the cursor focus within a group, use the arrow keys on your keyboard. The [TAB] key can be made to jump between groups.
Note: If the group number = 0, then the control will be in its own group. If the group number < 0 the control will has not been created.

Color code

Color includes both the foreground and the background color. The color code is calculated by the using this formula:

Color code = 100 X FOREGROUND COLOR CODE + BACKGROUND COLOR CODE
Note: The default color can not be changed when using the @@29 - @@32 functions.

Example

The number (7) represents a pale gray background with black text.

The number (0313) represents a dark cyan background with yellow text.

Color code table

Code Color Code Color
00 Black 10 Dark red
01 Red 11 Dark pink
02 Dark green 12 Green
03 Yellow 13 Dark cyan
04 Blue 14 Brown
05 Pink 15 White
06 Cyan 16 Light green
07 Pale gray 17 Pale green
08 Dark gray 18 Default list box yellow
09 Dark blue 19 Light yellow

Relative character position

This function defines a relative character position as it relates to a current character position. If no value is given, the character position is defined as the current character position.

Relative line position

This function defines the relative line position as it relates to the current line position. If no value is given the position is defined as the current line position.

Control attributes

Control character Description
FF Foreground color frame. The color code is taken from the field.
FR Foreground color rectangle. The color code is taken from the field.
G Group box
I Icon
TL Text, left aligned
TR Text, right aligned
TC Text, centered

Height

Defines the static control height (lines) in standard characters.

Example

#672;1;-1;-2;-3;01;00;79;

@@28;SW;3;63;100;12;180;_-_Operation_status;

@@33;CSGPDS00;

@@29;Operation_status_coloring;0;7;;;G;10;

@@29;Default_color;0;7;;;G;5;

@@29;Active;0;7;;;TL;1;

@@29;*75;0;7;;;FR;1;

@@29;*76;0;7;;;FR;1;

@@29;*77;0;7;;;FR;1;

@@29;*78;0;7;;;FR;1;

@@29;*79;0;7;;;FR;1;

@@29;*80;0;7;;;FR;1;

@@24;7;3;7;?0;;;CNP;*9;1;|;*9;0;

@@24;10;3;7;?0;;;CNP;*10;1;|;*10;0;

@@24;14;3;7;?0;;;CNP;*11;1;|;*11;0;

@@24;17;3;7;?0;;;CNP;*12;1;|;*12;0;

@@24;20;3;7;?0;;;CNP;*13;1;|;*13;0;

@@24;C\hange_color;0;7;?0;;;PS;F6;

@@24;\Change_color;0;7;?0;;;PS;F2;

@@24;Planned;2;7;?0;;;R;*3;1;

@@24;Received;2;7;?0;;;R;*3;2;

@@24;In_process;2;7;?0;;;R;*3;3;

@@24;Sequence_locked;2;7;?0;;;R;*3;4;

@@24;Fixed_locked;2;7;?0;;;R;*3;5;

@@24;\OK;0;7;?0;;;PD;T;F0;

@@24;Cancel;0;7;?0;;;PNPF3;T;F3;

@@24;Help;0;7;?0;;;PH;

õOperation_status_coloring____________________&õDefault_color_&

_____________________________________õActive&______*80___&

_$Planned_(10,70)&____________*75___&_$&

_$Received_(30,40,45)&________*76___&_$&________$C\hange_color...&

_$In_process,_started_(50,55)&*77___&_$&

_$Sequence_locked_(15)&_______*78___&_$&

_$Fixed_locked_(20)&__________*79___&_$&

_

_$\Change_color...&

_

_$\OK___&_$Cancel&_$Help__&