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

Canvas_Style

Previous pageReturn to chapter overviewNext page

 

Description

 

Set the style to be used in various other Canvas functions.

 

Syntax

 

n = Canvas_Style(lStyle)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

lStyle

Number

Yes

Available line styles are:

0 Solid (default)

1 Dash

2 Dot

3 DashDot

4 DashDotDot

 

Remarks

 

The graphic target must first be selected with Canvas_Attach.

Styles are only applied if the line width is set to 1, the default.  If the line width is greater than 1, the style is interpreted as 0, solid.

 

Restrictions

 

See also

 

Examples