Component: Component Label (Misc): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 65: | Line 65: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Hide''' | ||
|- | |- | ||
| colspan="2" | Hides the label. | | colspan="2" | Hides the label. | ||
| Line 79: | Line 79: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | 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. | | colspan="2" | Sets the color of the label using a single ULONG value - such as returned by panel GetColor functions. | ||
| Line 98: | Line 98: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetColorRGB''' | ||
|- | |- | ||
| colspan="2" | Set the label color using separate red, green and blue color channels. | | colspan="2" | Set the label color using separate red, green and blue color channels. | ||
| Line 127: | Line 127: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 161: | Line 161: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTargets''' | ||
|- | |- | ||
| colspan="2" | Set the objects used to determine the label text and position. | | colspan="2" | Set the objects used to determine the label text and position. | ||
| Line 185: | Line 185: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ShowName''' | ||
|- | |- | ||
| colspan="2" | Sets the label to show the target object's name | | colspan="2" | Sets the label to show the target object's name | ||
| Line 199: | Line 199: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ShowProperty''' | ||
|- | |- | ||
| colspan="2" | Sets the label to show a named property of the target object. | | colspan="2" | Sets the label to show a named property of the target object. | ||
| Line 218: | Line 218: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Update''' | ||
|- | |- | ||
| colspan="2" | Refresh the label after a change. | | colspan="2" | Refresh the label after a change. | ||
| Line 233: | Line 233: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 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 | |