Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > Canvas Control >

Canvas_SetPos

Previous pageReturn to chapter overviewNext page

 

Description

 

Set the last point referenced (POS) for the selected canvas target.

 

Syntax

 

n = Canvas_SetPos( [STEP] x, y )

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

x

Number

No

X coordinate

y

Number

No

Y coordinate

 

Remarks

 

The coordinate point is specified in the same terms (pixels or dialog units) as the parent dialog.

If the STEP option is included, the x and y coordinates are relative to the last point referenced (POS).

 

Restrictions

 

See also

 

Examples