Component: Component Label (Misc): Difference between revisions
Appearance
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd. |- | width="20%" style="color:gray;" | Version | 1.2 |- | width="20%" style="color:gra..." |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (14 intermediate revisions by 2 users not shown) | |||
| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_component_label.fcfx FC_Comp_Source_component_label.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_component_label.fcfx FC_Comp_Source_component_label.fcfx] | |||
==Detailed description== | ==Detailed description== | ||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
{| class="wikitable" | |||
==Macro reference== | |||
===Hide=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''Hide''' | |||
|- | |||
| colspan="2" | Hides the label. | |||
|- | |- | ||
|- | |- | ||
| | | 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'' | |||
|} | |||
===SetColor=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''SetColor''' | |||
|- | |- | ||
| | | colspan="2" | Sets the color of the label using a single ULONG value - such as returned by panel GetColor functions. | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG | ||
| width="90%" | | | width="90%" | Color | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Color to set the labels to. | ||
|- | |- | ||
| 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 52: | Line 94: | ||
{| class="wikitable" | ===SetColorRGB=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''SetColorRGB''' | |||
|- | |||
| colspan="2" | Set the label color using separate red, green and blue color channels. | |||
|- | |- | ||
|- | |- | ||
| colspan="2" | | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | Red | |||
|- | |||
| colspan="2" | Color parameter | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | |||
| width="90%" | Green | |||
|- | |- | ||
| colspan="2" | Color parameter | |||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9- | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | | | width="90%" | Blue | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Color parameter | ||
|- | |- | ||
| 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 70: | Line 123: | ||
{| class="wikitable | ===SetPosition=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetPosition''' | ||
|- | |- | ||
| colspan="2" | Set where the label will appear relative to the object. | | colspan="2" | Set where the label will appear relative to the object. | ||
| Line 103: | Line 157: | ||
{| class="wikitable | ===SetTargets=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTargets''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Set the objects used to determine the label text and position. | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE | ||
| width="90% | | width="90%" | TextObject | ||
|- | |- | ||
| | | colspan="2" | Object that will provide the label text from its name or a property. | ||
|- | |- | ||
| | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE | ||
| width="90%" | BoundsObject | |||
|- | |- | ||
| colspan="2" | Object that will set the label position and bounding box. | |||
| 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 | ||
| Line 134: | Line 181: | ||
{| class="wikitable | ===ShowName=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ShowName''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Sets the label to show the target object's name | ||
|- | |- | ||
|- | |- | ||
| 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 162: | Line 195: | ||
{| class="wikitable | ===ShowProperty=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ShowProperty''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Sets the label to show a named property of the target object. | ||
|- | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | |||
| width="90%" | Property | |||
|- | |- | ||
| colspan="2" | Name of the property to show. | |||
|- | |- | ||
| 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 175: | Line 214: | ||
{| class="wikitable | ===Update=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Update''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Refresh the label after a change. | ||
|- | |- | ||
|- | |- | ||
| Line 186: | Line 226: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| Line 218: | Line 256: | ||
| colspan="2" | Automatically update the label whenever the target's name or labelled property changes. Use this sparingly, as it requires the component to regularly poll the component for changes!! | | colspan="2" | Automatically update the label whenever the target's name or labelled property changes. Use this sparingly, as it requires the component to regularly poll the component for changes!! | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Appearance | ||
|- | |- | ||
|- | |- | ||
| Line 237: | Line 275: | ||
| colspan="2" | Whether labels should always be draw on top of other objects. | | colspan="2" | Whether labels should always be draw on top of other objects. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Size | ||
|- | |- | ||
|- | |- | ||
| Line 251: | Line 289: | ||
| colspan="2" | Whether labels get bigger and smaller when the panel is zoomed in and out. | | colspan="2" | Whether labels get bigger and smaller when the panel is zoomed in and out. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Offset | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:36, 13 July 2026
| Author | Matrix Ltd. |
| Version | 1.2 |
| Category | Misc |
Component Label component
Add a label to a component by including this component as a sub-component. The label will always face the viewer and move with its parent object. Text for the label is automatically read from the host component's name or any chosen property.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_component_label.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_component_label.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Hide
| Hide | |
| Hides the label. | |
| Return | |
SetColor
| SetColor | |
| Sets the color of the label using a single ULONG value - such as returned by panel GetColor functions. | |
| Color | |
| Color to set the labels to. | |
| Return | |
SetColorRGB
| SetColorRGB | |
| Set the label color using separate red, green and blue color channels. | |
| Red | |
| Color parameter | |
| Green | |
| Color parameter | |
| Blue | |
| Color parameter | |
| Return | |
SetPosition
SetTargets
ShowName
| ShowName | |
| Sets the label to show the target object's name | |
| Return | |
ShowProperty
| ShowProperty | |
| Sets the label to show a named property of the target object. | |
| Property | |
| Name of the property to show. | |
| Return | |
Update
| Update | |
| Refresh the label after a change. | |
| Return | |