Component: Marking control (Advanced Shapes)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.1 (Release)
Category Advanced Shapes


Image Marking control component

A control to draw markings on any component


Examples

No additional examples


Downloadable macro reference

This component does not contain any downloadable macros

Simulation macro reference

DrawStripY

Draw the marks on the readout

Set up the position and range with SetRange() and SetSpan()

Parameters

INT OffsetX
Offset to add to X


Return value

This call does not return a value


SetTarget

Sets the target image to draw on

Parameters

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


Return value

This call does not return a value


DrawStripX

Draw the marks on the readout

Set up the position and range with SetRange() and SetSpan()

Parameters

INT OffsetY
Offset to add to Y


Return value

This call does not return a value


BoundRange

Bounds a range to be between RangeStart and RangeEnd

Parameters

FLOAT Range
The unbounded range


Return value

FLOAT


DrawArc

Draw the marks on the readout

Set up the position and range with SetRange() and SetArc()

Parameters

FLOAT Radius
Scale of the radius to draw at


Return value

This call does not return a value


SetAngles

Sets the min-max angles to draw on the dial

Used for setting the needle

Defaults are 135 and -45

Parameters

INT Start
INT End


Return value

This call does not return a value


SetShow

Decides on the presentation of the dial

Parameters

BOOL ShowNumbers
True to show numbers on the dial, else false
BOOL ShowMarks
Show marks


Return value

This call does not return a value


CalcScaleRange

Decide the range value for a 0->1 value

Returned value may be out of range

Parameters

FLOAT ScaledRange


Return value

FLOAT


CalcAngRange

Decide the range value for an angle

Returned value may be out of range

Parameters

FLOAT AngleDegrees


Return value

FLOAT


CalcScale

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

Parameters

FLOAT RangeVal


Return value

FLOAT


SetMarks

Decides on the presentation of the dial

Parameters

INT Marks
Number of marks on the dial
INT Subs
Number of marks before a 'main' mark - can be zero


Return value

This call does not return a value


ClearArea

Clears the draw area

Parameters

This macro has no parameters


Return value

This call does not return a value


SetRange

Sets the min-max range to draw on the dial

Used for setting the needle

Parameters

INT Start
INT End


Return value

This call does not return a value


SetGaps

Sets the min-max of the span to draw on the X/Y marks

Defaults are 0 and 1

Parameters

INT Start
INT End


Return value

This call does not return a value


SetJustify

No additional information


Parameters

BOOL RAlign
True for right/top/outer alignment


Return value

This call does not return a value


CalcAngle

Decide the angle to display at given a range value

Parameters

FLOAT RangeVal


Return value

FLOAT



Property reference

This component does not contain any properties