Component: Marking control (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 91: | Line 91: | ||
|- | |- | ||
| 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" | '''BoundRange''' | ||
|- | |- | ||
| colspan="2" | Bounds a range to be between RangeStart and RangeEnd | | colspan="2" | Bounds a range to be between RangeStart and RangeEnd | ||
| Line 110: | Line 110: | ||
|- | |- | ||
| 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" | '''CalcAngRange''' | ||
|- | |- | ||
| colspan="2" | Decide the range value for an angle Returned value may be out of range | | colspan="2" | Decide the range value for an angle Returned value may be out of range | ||
| Line 129: | Line 129: | ||
|- | |- | ||
| 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" | '''CalcAngle''' | ||
|- | |- | ||
| colspan="2" | Decide the angle to display at given a range value | | colspan="2" | Decide the angle to display at given a range value | ||
| Line 148: | Line 148: | ||
|- | |- | ||
| 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" | '''CalcScale''' | ||
|- | |- | ||
| colspan="2" | Decide the scale (0->1) to display at given a range value | | colspan="2" | Decide the scale (0->1) to display at given a range value | ||
| Line 167: | Line 167: | ||
|- | |- | ||
| 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" | '''CalcScaleRange''' | ||
|- | |- | ||
| colspan="2" | Decide the range value for a 0->1 value Returned value may be out of range | | colspan="2" | Decide the range value for a 0->1 value Returned value may be out of range | ||
| Line 186: | Line 186: | ||
|- | |- | ||
| 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" | '''ClearArea''' | ||
|- | |- | ||
| colspan="2" | Clears the draw area | | colspan="2" | Clears the draw area | ||
| Line 200: | Line 200: | ||
|- | |- | ||
| 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" | '''DrawArc''' | ||
|- | |- | ||
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetArc() | | colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetArc() | ||
| Line 219: | Line 219: | ||
|- | |- | ||
| 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" | '''DrawStripX''' | ||
|- | |- | ||
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | | colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | ||
| Line 238: | Line 238: | ||
|- | |- | ||
| 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" | '''DrawStripY''' | ||
|- | |- | ||
| colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | | colspan="2" | Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | ||
| Line 257: | Line 257: | ||
|- | |- | ||
| 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" | '''SetAngles''' | ||
|- | |- | ||
| colspan="2" | Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45 | | colspan="2" | Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45 | ||
| Line 281: | Line 281: | ||
|- | |- | ||
| 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" | '''SetGaps''' | ||
|- | |- | ||
| colspan="2" | Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1 | | colspan="2" | Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1 | ||
| Line 305: | Line 305: | ||
|- | |- | ||
| 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" | '''SetJustify''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 324: | Line 324: | ||
|- | |- | ||
| 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" | '''SetMarks''' | ||
|- | |- | ||
| colspan="2" | Decides on the presentation of the dial | | colspan="2" | Decides on the presentation of the dial | ||
| Line 348: | Line 348: | ||
|- | |- | ||
| 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" | '''SetRange''' | ||
|- | |- | ||
| colspan="2" | Sets the min-max range to draw on the dial Used for setting the needle | | colspan="2" | Sets the min-max range to draw on the dial Used for setting the needle | ||
| Line 372: | Line 372: | ||
|- | |- | ||
| 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" | '''SetShow''' | ||
|- | |- | ||
| colspan="2" | Decides on the presentation of the dial | | colspan="2" | Decides on the presentation of the dial | ||
| Line 396: | Line 396: | ||
|- | |- | ||
| 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" | '''SetTarget''' | ||
|- | |- | ||
| colspan="2" | Sets the target image to draw on | | colspan="2" | Sets the target image to draw on | ||
| Line 431: | Line 431: | ||
|- | |- | ||
| 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''' | ||
|- | |- | ||
|} | |} | ||
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 | |
| Range | |
| The unbounded range | |
| Return | |
CalcAngRange
| CalcAngRange | |
| Decide the range value for an angle Returned value may be out of range | |
| AngleDegrees | |
| Return | |
CalcAngle
| CalcAngle | |
| Decide the angle to display at given a range value | |
| RangeVal | |
| Return | |
CalcScale
| CalcScale | |
| Decide the scale (0->1) to display at given a range value | |
| RangeVal | |
| Return | |
CalcScaleRange
| CalcScaleRange | |
| Decide the range value for a 0->1 value Returned value may be out of range | |
| ScaledRange | |
| Return | |
ClearArea
| ClearArea | |
| Clears the draw area | |
| Return | |
DrawArc
| DrawArc | |
| Draw the marks on the readout Set up the position and range with SetRange() and SetArc() | |
| Radius | |
| Scale of the radius to draw at | |
| Return | |
DrawStripX
| DrawStripX | |
| Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | |
| OffsetY | |
| Offset to add to Y | |
| Return | |
DrawStripY
| DrawStripY | |
| Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | |
| OffsetX | |
| Offset to add to X | |
| Return | |
SetAngles
| SetAngles | |
| Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45 | |
| Start | |
| End | |
| Return | |
SetGaps
| SetGaps | |
| Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1 | |
| Start | |
| End | |
| Return | |
SetJustify
| SetJustify | |
| RAlign | |
| True for right/top/outer alignment | |
| Return | |
SetMarks
| SetMarks | |
| Decides on the presentation of the dial | |
| Marks | |
| Number of marks on the dial | |
| Subs | |
| Number of marks before a 'main' mark - can be zero | |
| Return | |
SetRange
| SetRange | |
| Sets the min-max range to draw on the dial Used for setting the needle | |
| Start | |
| End | |
| Return | |
SetShow
| SetShow | |
| Decides on the presentation of the dial | |
| ShowNumbers | |
| True to show numbers on the dial, else false | |
| ShowMarks | |
| Show marks | |
| Return | |
SetTarget
| SetTarget | |
| Sets the target image to draw on | |
| Target | |
| AreaX | |
| The X area to draw on | |
| AreaY | |
| The Y area to draw on | |
| AutoCreate | |
| Set true to auto-create the graphic | |
| Return | |
Property reference
| Properties |