Jump to content

Component: Marking control (Misc): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(6 intermediate revisions by 2 users not shown)
Line 73: Line 73:


''<span style="color:red;">No additional examples</span>''
''<span style="color:red;">No additional examples</span>''




Line 81: Line 87:
==Macro reference==
==Macro reference==


===DrawStripY===
===BoundRange===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawStripY'''
| width="90%" class="mtx-class-macrohead" | '''BoundRange'''
|-
|-
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() &nbsp;
| colspan="2" | Bounds a range to be between RangeStart and RangeEnd&nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | OffsetX
| width="90%" | Range
|-
|-
| colspan="2" | Offset to add to X&nbsp;
| colspan="2" | The unbounded range&nbsp;
|-
|-
| 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-f32-icon.png]] - FLOAT
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




===SetTarget===
===CalcAngRange===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetTarget'''
| width="90%" class="mtx-class-macrohead" | '''CalcAngRange'''
|-
|-
| colspan="2" | Sets the target image to draw on&nbsp;
| colspan="2" | Decide the range value for an angle Returned value may be out of range &nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Target
| width="90%" | AngleDegrees
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | AreaX
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
 
 
===CalcAngle===
{| class="mtx-class-macrotable wikitable"
|-
|-
| colspan="2" | The X area to draw on&nbsp;
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" class="mtx-class-macrohead" | '''CalcAngle'''
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| colspan="2" | Decide the angle to display at given a range value&nbsp;
| width="90%" | AreaY
|-
|-
| colspan="2" | The Y area to draw on&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | AutoCreate
| width="90%" | RangeVal
|-
|-
| colspan="2" | Set true to auto-create the graphic&nbsp;
| colspan="2" | &nbsp;
|-
|-
| 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-f32-icon.png]] - FLOAT
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




===DrawStripX===
===CalcScale===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawStripX'''
| width="90%" class="mtx-class-macrohead" | '''CalcScale'''
|-
|-
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() &nbsp;
| colspan="2" | Decide the scale (0->1) to display at given a range value&nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | OffsetY
| width="90%" | RangeVal
|-
|-
| colspan="2" | Offset to add to Y&nbsp;
| colspan="2" | &nbsp;
|-
|-
| 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-f32-icon.png]] - FLOAT
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




===BoundRange===
===CalcScaleRange===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BoundRange'''
| width="90%" class="mtx-class-macrohead" | '''CalcScaleRange'''
|-
|-
| colspan="2" | Bounds a range to be between RangeStart and RangeEnd&nbsp;
| colspan="2" | Decide the range value for a 0->1 value Returned value may be out of range &nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" | Range
| width="90%" | ScaledRange
|-
|-
| colspan="2" | The unbounded range&nbsp;
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
===ClearArea===
{| class="mtx-class-macrotable wikitable"
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" class="mtx-class-macrohead" | '''ClearArea'''
|-
| colspan="2" | Clears the draw area&nbsp;
|-
|-
| 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''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}
Line 173: Line 197:


===DrawArc===
===DrawArc===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DrawArc'''
| width="90%" class="mtx-class-macrohead" | '''DrawArc'''
|-
|-
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetArc() &nbsp;
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetArc() &nbsp;
Line 191: Line 215:




===SetAngles===
===DrawStripX===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAngles'''
| width="90%" class="mtx-class-macrohead" | '''DrawStripX'''
|-
|-
| colspan="2" | Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45&nbsp;
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() &nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | Start
| width="90%" | OffsetY
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | Offset to add to Y&nbsp;
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | End
|-
| colspan="2" | &nbsp;
|-
|-
| 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 215: Line 234:




===SetShow===
===DrawStripY===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetShow'''
| width="90%" class="mtx-class-macrohead" | '''DrawStripY'''
|-
|-
| colspan="2" | Decides on the presentation of the dial&nbsp;
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() &nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | ShowNumbers
| width="90%" | OffsetX
|-
|-
| colspan="2" | True to show numbers on the dial, else false&nbsp;
| colspan="2" | Offset to add to X&nbsp;
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | ShowMarks
|-
| colspan="2" | Show marks&nbsp;
|-
|-
| 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 239: Line 253:




===CalcScaleRange===
===SetAngles===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" class="mtx-class-macrohead" | '''SetAngles'''
|-
| colspan="2" | Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45&nbsp;
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CalcScaleRange'''
|-
|-
| colspan="2" | Decide the range value for a 0->1 value Returned value may be out of range &nbsp;
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | Start
|-
|-
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | ScaledRange
| width="90%" | End
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| 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''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




===CalcAngRange===
===SetGaps===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" class="mtx-class-macrohead" | '''SetGaps'''
|-
| colspan="2" | Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1&nbsp;
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CalcAngRange'''
|-
|-
| colspan="2" | Decide the range value for an angle Returned value may be out of range &nbsp;
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | Start
|-
|-
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | AngleDegrees
| width="90%" | End
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| 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''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




===CalcScale===
===SetJustify===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CalcScale'''
| width="90%" class="mtx-class-macrohead" | '''SetJustify'''
|-
|-
| colspan="2" | Decide the scale (0->1) to display at given a range value&nbsp;
| colspan="2" | &nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | RangeVal
| width="90%" | RAlign
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | True for right/top/outer alignment&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| 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''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}
Line 297: Line 321:


===SetMarks===
===SetMarks===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMarks'''
| width="90%" class="mtx-class-macrohead" | '''SetMarks'''
|-
|-
| colspan="2" | Decides on the presentation of the dial&nbsp;
| colspan="2" | Decides on the presentation of the dial&nbsp;
Line 314: Line 338:
|-
|-
| colspan="2" | Number of marks before a 'main' mark - can be zero&nbsp;
| colspan="2" | Number of marks before a 'main' mark - can be zero&nbsp;
|-
| 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''
|}
===ClearArea===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearArea'''
|-
| colspan="2" | Clears the draw area&nbsp;
|-
|-
|-
| 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 335: Line 345:


===SetRange===
===SetRange===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetRange'''
| width="90%" class="mtx-class-macrohead" | '''SetRange'''
|-
|-
| colspan="2" | Sets the min-max range to draw on the dial Used for setting the needle&nbsp;
| colspan="2" | Sets the min-max range to draw on the dial Used for setting the needle&nbsp;
Line 358: Line 368:




===SetGaps===
===SetShow===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetGaps'''
| width="90%" class="mtx-class-macrohead" | '''SetShow'''
|-
|-
| colspan="2" | Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1&nbsp;
| colspan="2" | Decides on the presentation of the dial&nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | Start
| width="90%" | ShowNumbers
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | True to show numbers on the dial, else false&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | End
| width="90%" | ShowMarks
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | Show marks&nbsp;
|-
|-
| 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 382: Line 392:




===SetJustify===
===SetTarget===
{| 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" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetJustify'''
| width="90%" class="mtx-class-macrohead" | '''SetTarget'''
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | Sets the target image to draw on&nbsp;
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
| width="90%" | RAlign
| width="90%" | Target
|-
|-
| colspan="2" | True for right/top/outer alignment&nbsp;
| colspan="2" | &nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" | AreaX
|}
 
 
===CalcAngle===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| colspan="2" | The X area to draw on&nbsp;
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CalcAngle'''
|-
|-
| colspan="2" | Decide the angle to display at given a range value&nbsp;
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
| width="90%" | AreaY
|-
|-
| colspan="2" | The Y area to draw on&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
| width="90%" | RangeVal
| width="90%" | AutoCreate
|-
|-
| colspan="2" | &nbsp;
| colspan="2" | Set true to auto-create the graphic&nbsp;
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT
| 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''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




==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" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|}
|}

Latest revision as of 14:23, 13 July 2026

Author Matrix Ltd
Version 1.1
Category Misc


Marking control component

A control to draw markings on any component

Component Source Code

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

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

BoundRange

BoundRange
Bounds a range to be between RangeStart and RangeEnd 
- FLOAT Range
The unbounded range 
- FLOAT Return


CalcAngRange

CalcAngRange
Decide the range value for an angle Returned value may be out of range  
- FLOAT AngleDegrees
 
- FLOAT Return


CalcAngle

CalcAngle
Decide the angle to display at given a range value 
- FLOAT RangeVal
 
- FLOAT Return


CalcScale

CalcScale
Decide the scale (0->1) to display at given a range value 
- FLOAT RangeVal
 
- FLOAT Return


CalcScaleRange

CalcScaleRange
Decide the range value for a 0->1 value Returned value may be out of range  
- FLOAT ScaledRange
 
- FLOAT Return


ClearArea

ClearArea
Clears the draw area 
- VOID Return


DrawArc

DrawArc
Draw the marks on the readout Set up the position and range with SetRange() and SetArc()  
- FLOAT Radius
Scale of the radius to draw at 
- VOID Return


DrawStripX

DrawStripX
Draw the marks on the readout Set up the position and range with SetRange() and SetSpan()  
- INT OffsetY
Offset to add to Y 
- VOID Return


DrawStripY

DrawStripY
Draw the marks on the readout Set up the position and range with SetRange() and SetSpan()  
- INT OffsetX
Offset to add to X 
- VOID Return


SetAngles

SetAngles
Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45 
- INT Start
 
- INT End
 
- VOID Return


SetGaps

SetGaps
Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1 
- INT Start
 
- INT End
 
- VOID Return


SetJustify

SetJustify
 
- BOOL RAlign
True for right/top/outer alignment 
- VOID Return


SetMarks

SetMarks
Decides on the presentation of the dial 
- INT Marks
Number of marks on the dial 
- INT Subs
Number of marks before a 'main' mark - can be zero 
- VOID Return


SetRange

SetRange
Sets the min-max range to draw on the dial Used for setting the needle 
- INT Start
 
- INT End
 
- VOID Return


SetShow

SetShow
Decides on the presentation of the dial 
- BOOL ShowNumbers
True to show numbers on the dial, else false 
- BOOL ShowMarks
Show marks 
- VOID Return


SetTarget

SetTarget
Sets the target image to draw on 
- ULONG Target
 
- INT AreaX
The X area to draw on 
- INT AreaY
The Y area to draw on 
- BOOL AutoCreate
Set true to auto-create the graphic 
- VOID Return


Property reference

Properties