Jump to content

Component: Rectangle (Graphical Manager Primitives): Difference between revisions

From Flowcode Help
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray..."
 
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
Line 26: Line 26:


===GetID===
===GetID===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 40: Line 40:


===ModifyColour===
===ModifyColour===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 79: Line 79:


===ModifyPosition===
===ModifyPosition===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 108: Line 108:


===ModifyScale===
===ModifyScale===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 132: Line 132:


===SetTextFloat===
===SetTextFloat===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 161: Line 161:


===SetTextLabel===
===SetTextLabel===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 180: Line 180:


===SetTextNumber===
===SetTextNumber===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| 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]]
Line 205: Line 205:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]

Revision as of 14:15, 13 July 2026

Author Matrix TSL
Version 1.0
Category Graphical Manager Primitives


Rectangle component

A rectangle primitive used with the Graphical Manager on the GLCD Layout Editor panel.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

GetID

GetID
Returns the assigned object/widget ID. 
- UINT Return


ModifyColour

ModifyColour
Changes the theme index of the selected Object or Widget. 
- BYTE Index
0=Foreground, 1=Background, 2=Text, 3=Highlight 
- BYTE R
 
- BYTE G
 
- BYTE B
 
- BOOL Redraw
 
- VOID Return


ModifyPosition

ModifyPosition
Moves an existing object or Widget to absolute coordinates on the screen. 
- INT X
 
- INT Y
 
- BOOL Relative
0=Absolute Positioning, 1=Relative Positioning 
- VOID Return


ModifyScale

ModifyScale
Changes the width and height of the selected Object or Widget. 
- UINT Width
 
- UINT Height
 
- VOID Return


SetTextFloat

SetTextFloat
Draws a floating point value with optional units onto an object or Widget location. 
- FLOAT Number
 
- BYTE NumDP
Number of decimal points to display 
- STRING Unit
Optional unit string to add after the numeric value. e.g. "g" or "s" 
- VOID Return


SetTextLabel

SetTextLabel
Draws a string onto an object or Widget location. 
- STRING Text
Text string to set as the label 
- VOID Return


SetTextNumber

SetTextNumber
Draws an integer numerical value with optional units onto an object or Widget location. 
- INT Number
 
- STRING Unit
Unit string to add after the numeric value. e.g. "g" or "s" 
- VOID Return


Property reference

Properties
Appearance
Line Width
Width of the outer border line in pixels 
Line Colour
The colour of the outer border line 
Fill Colour
The fill colour of the shape 
Touch
Touchable
Determines if the display creator defined area responds to touches Touch is detected by using the DisplayManager::CheckForTouch macro with the X,Y coordinates of a touch 
Text
Text
Optional default text to add to the inside of the shape 
Font
GLCD font to use 
Horizontal Alignment
Horizontal alignment of the text label inside the shape 
Vertical Alignment
Vertical alignment of the text label inside the shape 
Text Colour
The colour of the text 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DC_Rectangle.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DC_Rectangle.fcfx