Difference between revisions of "Component: Marking control (Misc)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray...") |
|||
| Line 15: | Line 15: | ||
A control to draw markings on any component | A control to draw markings on any component | ||
| − | ==Component | + | ==Component Source Code== |
| − | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_markings.fcfx FC_Comp_Source_markings.fcfx] | |
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 32: | Line 34: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 378: | Line 382: | ||
| 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]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
|} | |} | ||
Revision as of 17:53, 9 November 2022
| Author | Matrix Ltd |
| Version | 1.1 |
| Category | Misc |
Contents
Marking control component
A control to draw markings on any component
Component Source Code
Please click here for the component source code: FC_Comp_Source_markings.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| DrawStripY | |
| Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | |
| OffsetX | |
| Offset to add to X | |
| Return | |
| 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 | |
| DrawStripX | |
| Draw the marks on the readout Set up the position and range with SetRange() and SetSpan() | |
| OffsetY | |
| Offset to add to Y | |
| Return | |
| BoundRange | |
| Bounds a range to be between RangeStart and RangeEnd | |
| Range | |
| The unbounded range | |
| Return | |
| 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 | |
| SetAngles | |
| Sets the min-max angles to draw on the dial Used for setting the needle Defaults are 135 and -45 | |
| Start | |
| End | |
| Return | |
| SetShow | |
| Decides on the presentation of the dial | |
| ShowNumbers | |
| True to show numbers on the dial, else false | |
| ShowMarks | |
| Show marks | |
| Return | |
| CalcScaleRange | |
| Decide the range value for a 0->1 value Returned value may be out of range | |
| ScaledRange | |
| Return | |
| CalcAngRange | |
| Decide the range value for an angle Returned value may be out of range | |
| AngleDegrees | |
| Return | |
| CalcScale | |
| Decide the scale (0->1) to display at given a range value | |
| RangeVal | |
| Return | |
| 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 | |
| ClearArea | |
| Clears the draw area | |
| Return | |
| SetRange | |
| Sets the min-max range to draw on the dial Used for setting the needle | |
| Start | |
| End | |
| Return | |
| SetGaps | |
| Sets the min-max of the span to draw on the X/Y marks Defaults are 0 and 1 | |
| Start | |
| End | |
| Return | |
| SetJustify | |
| RAlign | |
| True for right/top/outer alignment | |
| Return | |
| CalcAngle | |
| Decide the angle to display at given a range value | |
| RangeVal | |
| Return | |
Property reference
| Properties |