Difference between revisions of "Component: Marking control (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_markings.fcfx FC_Comp_Source_markings.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_markings.fcfx FC_Comp_Source_markings.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Latest revision as of 13:13, 7 February 2023
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 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 |