Jump to content

Component: Component Label (Misc): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 64: Line 64:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Hide'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Hide'''
|-
|-
Line 78: Line 78:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetColor'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetColor'''
|-
|-
Line 97: Line 97:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetColorRGB'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetColorRGB'''
|-
|-
Line 126: Line 126:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetPosition'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetPosition'''
|-
|-
Line 160: Line 160:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTargets'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTargets'''
|-
|-
Line 184: Line 184:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowName'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowName'''
|-
|-
Line 198: Line 198:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowProperty'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowProperty'''
|-
|-
Line 217: Line 217:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Update'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Update'''
|-
|-

Revision as of 14:16, 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. 
- VOID Return


SetColor

SetColor
Sets the color of the label using a single ULONG value - such as returned by panel GetColor functions. 
- ULONG Color
Color to set the labels to. 
- VOID Return


SetColorRGB

SetColorRGB
Set the label color using separate red, green and blue color channels. 
- BYTE Red
Color parameter 
- BYTE Green
Color parameter 
- BYTE Blue
Color parameter 
- VOID Return


SetPosition

SetPosition
Set where the label will appear relative to the object. 
- BYTE Position
Set the position - choose a preset from the list of constants, or 'Position XYZ to enter values below. 
- FLOAT X
X axis offset (only if 'Position_XYZ' selected for 'Position') 
- FLOAT Y
Y axis offset (only if 'Position_XYZ' selected for 'Position') 
- FLOAT Z
Z axis offset (only if 'Position_XYZ' selected for 'Position') 
- VOID Return


SetTargets

SetTargets
Set the objects used to determine the label text and position. 
- HANDLE TextObject
Object that will provide the label text from its name or a property. 
- HANDLE BoundsObject
Object that will set the label position and bounding box. 
- VOID Return


ShowName

ShowName
Sets the label to show the target object's name 
- VOID Return


ShowProperty

ShowProperty
Sets the label to show a named property of the target object. 
- STRING Property
Name of the property to show. 
- VOID Return


Update

Update
Refresh the label after a change. 
- VOID Return


Property reference

Properties
Show
Decide what label to show... None - no labels are displayed Name - shows the component's name Property - shows a property value of the component (a field for the property name will appear below) 
Label target
Set the object from which the label text will be taken. If none is given, defaults to the parent of the label component. 
Bounds target
Set the object used to set the dimensions used for the positioning of the labels. If none is given, defaults to the parent of the label component. 
Auto Update
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!! 
Appearance
Color
Color of the label text. 
Background
Color for label backgroiunds - may be transparent. 
Always On Top
Whether labels should always be draw on top of other objects. 
Size
Scale
Sets the basic size (text height) of the labels. 
Follow Zoom
Whether labels get bigger and smaller when the panel is zoomed in and out. 
Offset
Auto
Attempt to automatically move the label to the side of the object. Choose a positive or negative offset in any of the three axes. When 'off', the manual offsett values can be edited below.