From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|- | |- | ||
| elType || Element type || 20 || Type of the element, from which depends the list of additional attributes: | | elType || Element type || 20 || Type of the element, from which depends the list of additional attributes: | ||
− | * Line edit | + | * Line edit (0) |
− | * Text edit | + | * Text edit (1) |
− | * Check | + | * Check Box (2) |
− | * Button | + | * Button (3) |
− | * Combo box | + | * Combo box (4) |
− | * List | + | * List (5) |
− | * Tree | + | * Tree (8) |
− | * Table | + | * Table (9) |
− | * Slider | + | * Slider (6) |
− | * Scroll bar | + | * Scroll bar (7) |
|- | |- | ||
| colspan="4" | ''Line edit:'' | | colspan="4" | ''Line edit:'' | ||
Line 21: | Line 21: | ||
|- | |- | ||
| view || View || 22 || View of the editing line: | | view || View || 22 || View of the editing line: | ||
− | * Text | + | * Text (0) |
− | * | + | * Combo Box (1) |
− | * Integer | + | * Integer (2) |
− | * Real | + | * Real (3) |
− | * Time | + | * Time (4) |
− | * Date | + | * Date (5) |
− | * Date and Time | + | * Date and Time (6) |
− | * Password | + | * Password (7) |
|- | |- | ||
| cfg || Configuration || 23 || Configuration of the line. Format of the value of the field for different views of the lines: | | cfg || Configuration || 23 || Configuration of the line. Format of the value of the field for different views of the lines: | ||
Line 111: | Line 111: | ||
* "Checkable" — toggle value; | * "Checkable" — toggle value; | ||
* "Menu" — list of addresses of the menu elements like to '''/grp1/grp2/item1'''; | * "Menu" — list of addresses of the menu elements like to '''/grp1/grp2/item1'''; | ||
− | * "Load" — description line '''{FilesTemplate}|{Header}|{FileByDefaultAndLoaded}|{FileMime}''' and loaded file content. The files template like to "Images (*.png *.xpm *.jpg);;CSV-file (*.csv)". | + | * "Load" — description line '''{FilesTemplate}|{Header}|{FileByDefaultAndLoaded}|{FileMime}''' and loaded file content from next line. The files template like to "Images (*.png *.xpm *.jpg);;CSV-file (*.csv)". |
− | * "Save" — description line '''{FilesTemplate}|{Header}|{FileByDefault}|{FileMime}''' and saving file content. The files template like to before one. | + | * "Save" — description line '''{FilesTemplate}|{Header}|{FileByDefault}|{FileMime}''' and saving file content from next line. The files template like to before one. |
|- | |- | ||
| img || Image || 22 || Image on the button. Image name in the view '''[{src}:]{name}''', where: | | img || Image || 22 || Image on the button. Image name in the view '''[{src}:]{name}''', where: | ||
Line 135: | Line 135: | ||
|- | |- | ||
| mode || Mode || 24 || Operation mode of the button: | | mode || Mode || 24 || Operation mode of the button: | ||
− | * "Standard" — normal button which allows repeating events on it hold, the parameters | + | * "Standard" — normal button which allows repeating events on it hold, the parameters in "value"; |
− | * "Checkable" — check button, values | + | * "Checkable" — check button, values in "value"; |
− | * "Menu" — opens menu on press, items list | + | * "Menu" — opens menu on press, items list in "value"; |
* "Load" — provides for loading of the user-space small files through the visual interface; on the mode the button press will open the selection file dialog for loading and the file content next saving to the attribute "value"; | * "Load" — provides for loading of the user-space small files through the visual interface; on the mode the button press will open the selection file dialog for loading and the file content next saving to the attribute "value"; | ||
* "Save" — provides for saving of the user-space small files through the visual interface; on the file content writing to the attribute "value" for user will: open the selecting/setting file dialog, save the attribute "value" content to the file, after the selecting, and set clean the attribute "value". | * "Save" — provides for saving of the user-space small files through the visual interface; on the file content writing to the attribute "value" for user will: open the selecting/setting file dialog, save the attribute "value" content to the file, after the selecting, and set clean the attribute "value". | ||
Line 163: | Line 163: | ||
| colspan="4" | ''Table:'' | | colspan="4" | ''Table:'' | ||
|- | |- | ||
− | | set || Setting value || 23 || Value of edition of a cell of the table which address | + | | set || Setting value || 23 || Value of edition of a cell of the table which address in the event "'''ws_TableEdit_{colN}_{rowN}'''". |
|- | |- | ||
| value || Value || 21 || Address of the selected item. It changing follows by the event "'''ws_TableChangeSel'''". The address format depends from the table's selection mode: | | value || Value || 21 || Address of the selected item. It changing follows by the event "'''ws_TableChangeSel'''". The address format depends from the table's selection mode: | ||
Line 185: | Line 185: | ||
:* "sortEn" — enables sorting directly by the columns. | :* "sortEn" — enables sorting directly by the columns. | ||
:"h" — Row of the headers. Possible attributes of the header cell tag for the column as a whole: | :"h" — Row of the headers. Possible attributes of the header cell tag for the column as a whole: | ||
− | :* "width" — column width, in pixels or percents (10%); | + | :* "width" — column width, in pixels or percents (10%); set to 0 for do not show at all; |
:* "edit" — allowing to the cells of the row edition (0 or 1), by default — no (0); | :* "edit" — allowing to the cells of the row edition (0 or 1), by default — no (0); | ||
− | :* "color" — column color as a whole | + | :* "color" — column color as a whole in the color name or code; |
− | :* "colorText" — color of the column text as a whole | + | :* "colorText" — color of the column text as a whole in the color name or code; |
:* "font" — font of the column text in the typical OpenSCADA string; | :* "font" — font of the column text in the typical OpenSCADA string; | ||
:* "prec" — value precision of the real type cells in the column; | :* "prec" — value precision of the real type cells in the column; | ||
Line 194: | Line 194: | ||
:* "align" — alignment the column for: "left", "right" and "center". | :* "align" — alignment the column for: "left", "right" and "center". | ||
:"r" — Row of the values. Possible attributes of the row cell tag for the row as a whole: | :"r" — Row of the values. Possible attributes of the row cell tag for the row as a whole: | ||
− | :* "color" — row color as a whole | + | :* "color" — row color as a whole in the color name or code; |
− | :* "colorText" — color of the row text as a whole | + | :* "colorText" — color of the row text as a whole in the color name or code; |
:* "font" — font of the cell text in the typical OpenSCADA string; | :* "font" — font of the cell text in the typical OpenSCADA string; | ||
:* "prec" — value precision of the real type cells in the row. | :* "prec" — value precision of the real type cells in the row. | ||
:"s", "t", "i", "r", "b" — cells of the data types "String", "Text", "Integer", "Real" and "Logical". Possible attributes: | :"s", "t", "i", "r", "b" — cells of the data types "String", "Text", "Integer", "Real" and "Logical". Possible attributes: | ||
:* "color" — cell color; | :* "color" — cell color; | ||
− | :* "colorText" — color of the cell text | + | :* "colorText" — color of the cell text in the color name or code; |
:* "font" — font of the cell text in the typical OpenSCADA string; | :* "font" — font of the cell text in the typical OpenSCADA string; | ||
:* "prec" — value precision of the real type cell; | :* "prec" — value precision of the real type cell; | ||
− | :* "img" — image of the cell | + | :* "img" — image of the cell in the form "'''[{src}:]{name}'''", the details above; |
:* "edit" — allowing the cell edition (0 or 1), by default - no (0); | :* "edit" — allowing the cell edition (0 or 1), by default - no (0); | ||
:* "align" — alignment the cell for: "left", "right" and "center". | :* "align" — alignment the cell for: "left", "right" and "center". |
Latest revision as of 16:46, 11 April 2025
Table. List of additional properties/attributes of the primitive "Element of the form (FormEl)"
Identifier | Name | Number | Value |
---|---|---|---|
elType | Element type | 20 | Type of the element, from which depends the list of additional attributes:
|
Line edit: | |||
value | Value | 21 | Contents of the line. |
view | View | 22 | View of the editing line:
|
cfg | Configuration | 23 | Configuration of the line. Format of the value of the field for different views of the lines:
|
confirm | Confirm | 24 | Enable the confirming mode. |
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}", where:
Examples:
|
Text edit: | |||
value | Value | 21 | Content of the editor. |
wordWrap | Word wrap | 22 | Automatically wrap text by words. |
confirm | Confirm | 24 | Enable the confirming mode. |
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}" (details above). |
Check box: | |||
name | Name | 26 | Name/label of the checkbox. |
value | Value | 21 | Value of the checkbox. |
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}" (details above). |
Button: | |||
name | Name | 26 | Name-inscription on the button. Allowed symbols '\n' for multiple line names. |
value | Value | 21 | The value, different for modes:
|
img | Image | 22 | Image on the button. Image name in the view [{src}:]{name}, where:
Examples:
|
color | Color | 23 | Color of the button. Color name form "{color}[-{alpha}]", where:
Examples:
|
colorText | Color:text | 27 | Color of the text (details above). |
mode | Mode | 24 | Operation mode of the button:
|
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}" (details above). |
List: | |||
value | Value | 21 | Current value of the list. |
items | Items | 22 | Entries of the list. |
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}" (details above). |
mult | Multiple selection | 23 | Allow for multiple entries selection of the list. |
Combo box, Tree: | |||
value | Value | 21 | Current value of the list. |
items | Items | 22 | Entries of the list or hierarchical items list of the tree in path "/{DIR}/{DIR}/{ITEM}". |
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}" (details above). |
Table: | |||
set | Setting value | 23 | Value of edition of a cell of the table which address in the event "ws_TableEdit_{colN}_{rowN}". |
value | Value | 21 | Address of the selected item. It changing follows by the event "ws_TableChangeSel". The address format depends from the table's selection mode:
|
items | Elements | 22 |
The table structure and content in the XML view: <tbl>
<h><s>{Header1}</s><s>{Header2}</s></h>
<r><s>{Row1Column1String}</s><i>{Row1Column1Integer}</i></r>
<r><b>{Row2Column1Logical}</b><r>{Row2Column2Real}</r></r>
</tbl>
The tags:
|
font | Font | 25 | Font name in the form "{family} {size} {bold} {italic} {underline} {strike}" (the details above). |
Slider and Scroll Bar: | |||
value | Value | 21 | Slider position. |
cfg | Configuration | 22 | Configuration of the slider in the format: "{VertOrient}:{Min}:{Max}:{SinglStep}:{PageStep}". Where:
|