Difference between revisions of "Component: Panel Console Viewer (Runtime Tools)"
From Flowcode Help
Jump to navigationJump to search(25 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
==Panel Console Viewer component== | ==Panel Console Viewer component== | ||
An easy way to display the data from up to four console windows on the panel. | An easy way to display the data from up to four console windows on the panel. | ||
+ | |||
+ | ==Component Source Code== | ||
+ | |||
+ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DynamicTextField.fcfx FC_Comp_Source_DynamicTextField.fcfx] | ||
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DynamicTextField.fcfx FC_Comp_Source_DynamicTextField.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 32: | Line 74: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 49: | Line 127: | ||
− | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Macro reference== | ||
+ | |||
+ | ===AppendText=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AppendText''' |
|- | |- | ||
− | | colspan="2" | Allows the | + | | colspan="2" | Allows the text to be appended to without overwriting any existing text. |
|- | |- | ||
|- | |- | ||
Line 68: | Line 167: | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | AppendType | ||
+ | |- | ||
+ | | colspan="2" | 0=Start of Text, 1=End of Text | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
Line 74: | Line 178: | ||
+ | ===AssignConsoleHandle=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AssignConsoleHandle''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Assigns a specific console handle to one of the text fields. |
|- | |- | ||
|- | |- | ||
Line 85: | Line 190: | ||
| width="90%" | Item | | width="90%" | Item | ||
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | 1=Col1, 2=Col2, 3=Col3, 4=Col4 |
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE | ||
+ | | width="90%" | ConsoleHandle | ||
+ | |- | ||
+ | | colspan="2" | | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | ===GetText=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetText''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Allows the selected text to be read back. |
|- | |- | ||
|- | |- | ||
Line 103: | Line 214: | ||
| width="90%" | Item | | width="90%" | Item | ||
|- | |- | ||
− | | colspan="2" | 1=Col1, 2=Col2, 3=Col3, 4=Col4 | + | | colspan="2" | 0=Title, 1=Col1, 2=Col2, 3=Col3, 4=Col4 |
|- | |- | ||
− | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-string-icon.png]] - STRING | |
− | |||
− | |||
− | |||
− | |||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
+ | ===SetColor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 138: | Line 245: | ||
+ | ===SetText=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetText''' |
|- | |- | ||
− | | colspan="2" | Allows the text to be | + | | colspan="2" | Allows the selected text to be specified. |
|- | |- | ||
|- | |- | ||
Line 155: | Line 263: | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Line 230: | Line 331: | ||
|- | |- | ||
| colspan="2" | Removes old data from the console viewer when starting simulation if active. | | colspan="2" | Removes old data from the console viewer when starting simulation if active. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Latest revision as of 13:09, 7 February 2023
Author | Matrix Ltd |
Version | 1.1 |
Category | Runtime Tools |
Contents
Panel Console Viewer component
An easy way to display the data from up to four console windows on the panel.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DynamicTextField.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DynamicTextField.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AppendText
AssignConsoleHandle
AssignConsoleHandle | |
Assigns a specific console handle to one of the text fields. | |
- BYTE | Item |
1=Col1, 2=Col2, 3=Col3, 4=Col4 | |
- HANDLE | ConsoleHandle |
- VOID | Return |
GetText
GetText | |
Allows the selected text to be read back. | |
- BYTE | Item |
0=Title, 1=Col1, 2=Col2, 3=Col3, 4=Col4 | |
- STRING | Return |
SetColor
SetColor | |
Sets the selected item's color. | |
- BYTE | Item |
0=Title, 1=Col1, 2=Col2, 3=Col3, 4=Col4, 5=Border | |
- ULONG | Color |
- VOID | Return |
SetText
SetText | |
Allows the selected text to be specified. | |
- BYTE | Item |
0=Title, 1=Col1, 2=Col2, 3=Col3, 4=Col4 | |
- STRING | Text |
- VOID | Return |