Component: Scale Arc Template (Advanced Shapes): 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 - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 73: | Line 73: | ||
|- | |- | ||
| 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" | '''GetValue''' | ||
|- | |- | ||
| colspan="2" | Get the current scale value - this will be the most recent value set using "SetValue", or from the most recent mouse click if the component is in "Control" mode. | | colspan="2" | Get the current scale value - this will be the most recent value set using "SetValue", or from the most recent mouse click if the component is in "Control" mode. | ||
| Line 87: | Line 87: | ||
|- | |- | ||
| 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" | '''SetLabel''' | ||
|- | |- | ||
| colspan="2" | Set the label text for the scale | | colspan="2" | Set the label text for the scale | ||
| Line 106: | Line 106: | ||
|- | |- | ||
| 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" | Set the minimum and maximum values of the scale | | colspan="2" | Set the minimum and maximum values of the scale | ||
| Line 130: | Line 130: | ||
|- | |- | ||
| 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" | '''SetValue''' | ||
|- | |- | ||
| colspan="2" | Set the pointer to the given value on the scale. Returns the angle required to point at the given value. | | colspan="2" | Set the pointer to the given value on the scale. Returns the angle required to point at the given value. | ||
| Line 150: | Line 150: | ||
|- | |- | ||
| 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''' | ||
|- | |- | ||
|- | |- | ||
| Line 168: | Line 168: | ||
| colspan="2" | Choose the 'mode' of the component. "Display" mode - the arc can act as a value display, with the 'Pointer' object rotating to show incoming value changes. "Control" mode - clicking on the scale, or 'Pointer' object, sets the value directly, which can be susequently read by the "GetValue" macro. | | colspan="2" | Choose the 'mode' of the component. "Display" mode - the arc can act as a value display, with the 'Pointer' object rotating to show incoming value changes. "Control" mode - clicking on the scale, or 'Pointer' object, sets the value directly, which can be susequently read by the "GetValue" macro. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Style | ||
|- | |- | ||
|- | |- | ||
| Line 202: | Line 202: | ||
| colspan="2" | Color for the component label text. | | colspan="2" | Color for the component label text. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Arc | ||
|- | |- | ||
|- | |- | ||
| Line 231: | Line 231: | ||
| colspan="2" | Whether to show or hide the arc. | | colspan="2" | Whether to show or hide the arc. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Marks | ||
|- | |- | ||
|- | |- | ||
| Line 270: | Line 270: | ||
| colspan="2" | Whether to show or hide the division markings. | | colspan="2" | Whether to show or hide the division markings. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Numbers | ||
|- | |- | ||
|- | |- | ||
| Line 309: | Line 309: | ||
| colspan="2" | Show or hide the number values. | | colspan="2" | Show or hide the number values. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Label | ||
|- | |- | ||
|- | |- | ||
| Line 343: | Line 343: | ||
| colspan="2" | Show or hide the text label. | | colspan="2" | Show or hide the text label. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Buttons | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | Advanced Shapes |
Scale Arc Template component
A base component for drawing circular dials. This allows a simple way to create graduated and labelled dials, for example, within meter and rotary control components. Mouse handling is built in for ease of building interactive controls.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Scale_Arc.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Scale_Arc.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetValue
| GetValue | |
| Get the current scale value - this will be the most recent value set using "SetValue", or from the most recent mouse click if the component is in "Control" mode. | |
| Return | |
SetLabel
| SetLabel | |
| Set the label text for the scale | |
| Label | |
| Text to display.as the component label. | |
| Return | |
SetRange
| SetRange | |
| Set the minimum and maximum values of the scale | |
| Minimum | |
| Minimum value for the scale | |
| Maximum | |
| Maximum value for the scale | |
| Return | |
SetValue
| SetValue | |
| Set the pointer to the given value on the scale. Returns the angle required to point at the given value. | |
| Value | |
| The value on the scale to move the pointer to. | |
| Return | |