A numeric code indicating the “class” (field or widget type) of the associated form field.
Valid Values
WdgType = {30 where FT = “0”, 31 where FT = “1”,
A numeric value ranging from 1 to the maximum available widgets according to the table below:
Code | Meaning |
---|
1 | Label |
2 | Entry Field |
3 | ToggleButton |
4 | PushButton |
5 | Menu Item |
6 | Frame |
7 | ListBox |
8 | ComboBox |
9 | OptionBox |
10 | Picture |
11 | Graphic |
12 | Divider |
13 | ScrollBar |
14 | UserMessage |
17 | OLE Object |
19 | TabControl |
20 | TabPage |
21 | GridControl |
22 | Calendar |
23 | Camera |
24 | TreeView |
25 | Signature |
26 | BarCode |
27 | ProgressBar |
28 | TreeView Node |
29 | ListView |
30 | Video |
31 | WebPage |
The callback events an object can raise.
Valid Values
An integer code combining the following values:
Code | Meaning |
0 | No callback events are raised. |
1 | When the object is modified (MODIFIED). |
2 | When a click is applied to the object (CLICK). |
4 | When a double-click is applied to the object (DOUBLECLICK). |
8 | When a right-click is applied to the object (RIGHTCLICK). |
16 | When an ActiveX object raises a callback event (ACTIVEX). |
32 | When a click occurs on the header of the object (HEADER). |
64 | When the object gets the focus (GOTFOCUS). |
128 | When the object loses focus (LOSTFOCUS). |
256 | When the object loses focus after being modified (LOSTFOCUSMODIFIED). |
Remarks
Only resizable windows can have menus.
Example: If the object has to raise a GotFocus event and a Click event, the WdgCallbacks would contain (2 + 64) = 66.
Provides extra information about the object being used.
Valid Values
A character string, up to 512 characters long either blank or in JSON format.
Remarks
The WdgCSS values for the objects involved present either a blank value or a free-format JSON syntax containing additional information about the object. This extra information may be Data Dictionary fields valid only to the particular object or implemented for future use.
Example
{"icon": "c:/images/zx.ico", "smallincrement":30}
ZIM:X allows JSON data format to be retrieved by the means of the $FindJSON function if the above value would be stored in FFs.WdgCSS:
LIST FFs FORMAT $FindJSON(WdgCSS, "smallincrement")
30
See Also
$FindJSON
These numeric constants are in Zim’s data dictionary. They can be used instead of the number value to make your code more readable.
Color Constant Name | Value | Color Constant Name | Value |
Inherited from the parent | 0 | cInactiveCaptionTxt | 19 |
Black | 1 | cWindowText | 20 |
Blue | 2 | cWindowFrame | 21 |
Green | 3 | cScrollBarColor | 22 |
Cyan | 4 | cMenuTextColor | 23 |
Red | 5 | cMenuColor | 24 |
Magenta | 6 | cInactiveCaption | 25 |
Brown | 7 | cInactiveBorder | 26 |
LightGrey | 8 | cHighlightText | 27 |
DarkGrey | 9 | cHighlightColor | 28 |
LightBlue | 10 | cGreyText | 29 |
LightGreen | 11 | cCaptionText | 30 |
LightCyan | 12 | cButtonText | 31 |
LightRed | 13 | cButtonShadow | 32 |
LightMagenta | 14 | cButtonFace | 33 |
Yellow | 15 | cWindowBackground | 34 |
White | 16 | cAppWorkSpace | 35 |
cWindowColor | 17 | cActiveCaption | 36 |
cButtonHighlight | 18 | cActiveBorder | 37 |
“Autoselect” status of a form field. Indicates whether the content of a form field is automatically “selected” when the form field acquires focus. (For text-entry form fields, WdgAutoSelect and AC (autoclear) are the same.)
Valid Values
An integer code, as shown in the table below:
Remarks
WdgAutoSelect is not respected when the focus shift into the field occurs as the result of a mouse button press. The reason is that pressing the left mouse button starts a “pending” operation (i.e., selection in entry fields, “arming” in check boxes), and the user’s intent is not clear until the button is released and the mouse position checked.
See Also
AC
Stores initial values for lists. The initial list of values for a combo box or list box are stored in WdgItems.
Valid Values
A 256-character string, containing a list of values separated by semicolons
Remarks
If the length of any item in the list exceed the field’s FieldLen, then that item is truncated.
Leading spaces are stripped from all items.
Example 1
Red;Green;Blue
Example 2
If the semicolon must be used as data, it should be preceded by the escape character ():
period (.);comma (,);semicolon (;)
See Also
FieldLen, FORM SET LIST (Language Reference)
Response of a form field to a change in value (Modified) event. Indicates how the form field responds to a change in value (Modified) event.
Valid Values
A 1-character code, as shown in the table below:
Code | Meaning |
N | (DEFAULT) No notification |
Y | Control returns to the application program if the form field is modified |
Remarks
If WdgModified is set to Y, then FORM INPUT will transmit any time the end-user changes the value of the form field (for entry fields, this occurs for every press of a key that is not simply cursor motion).
If WdgModified is trapped, then LostFocusModified events (IT = Y) will never occur.
See Also
IT
The label that is to be attached to this form field, or the text that is to appear in a window’s caption.
Valid Values
A character string (up to 256 characters for FormFields; up to 64 characters for Windows)
Remarks
For FormFields
The location of the label varies with the class and subclass of the form field, and the WdgLabelPosition.
To designate a character in the label as the mnemonic accelerator for the form field or menu item, place an ampersand immediately preceding the desired character (e.g., &Quit). The character appears underscored in the label. When the form field is used in a display, pressing the mnemonic accelerator (in combination with Alt/Extended Char/Compose) causes the object’s acceleration action to occur.
For Windows
If WdgCaption is set to 0 (no), WdgLabel is ignored.
If WdgLabel is left blank, it defaults to the null string (“”).
This attribute is Meaningful for graphic-class windows only.
See Also
FT, WdgCaption, WdgClass, WdgLabelPosition, WdgSubClass
Effect of a mouse click in a form field. Indicates whether a Click event is to be returned to the application program when a mouse click occurs in this form field.
Valid Values
A 1-character code, as shown in the table below:
Code | Meaning |
N | (DEFAULT) No |
Y | Yes |
Remarks
A click can occur if the form field is available or guarded. If the field is guarded, the event occurs as soon as the left mouse button is pressed. If the field is available, the left mouse button must be pressed and released without producing some other action (e.g., text selection in an entry field).
See Also
FT, PM
The data type of the form field’s value.
Valid Values
A 1-character code, as shown in the table below:
Code | Meaning |
A | Alphanumeric (letters, digits, punctuation) |
D | Date (digits in accordance with the mask specified for the form field (e.g., MM/DD/YY)) |
M | Message |
N | Numeric (digits, decimal point, plus and minus signs) |
T | Non-digit (any characters except digits) |
See Also
DataMask, WdgInputMask