Component: Component Label (Misc): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 64: | Line 64: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | '''Hide''' | ||
|- | |- | ||
| colspan="2" | Hides the label. | | colspan="2" | Hides the label. | ||
| Line 78: | Line 78: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | '''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 97: | Line 97: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | '''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 126: | Line 126: | ||
{| class="mtx-class-macrotable wikitable" | {| 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 160: | Line 160: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | 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 184: | Line 184: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | Sets the label to show the target object's name | | colspan="2" | Sets the label to show the target object's name | ||
| Line 198: | Line 198: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | 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 217: | Line 217: | ||
{| class="mtx-class-macrotable wikitable" | {| 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" | Refresh the label after a change. | | colspan="2" | Refresh the label after a change. | ||
| Line 232: | Line 232: | ||
{| class="mtx-class-macrotable 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 256: | 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 275: | 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 289: | 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 | |