Pen Interface Reference

Pen object is used to draw lines or outline shapes. More...

Inheritance diagram for Pen:

Inheritance graph
Collaboration diagram for Pen:

Collaboration graph
List of all members.

Properties

LONG RW Width []
 Specifies the width of the pen.
LONG RW Style []
 Specifies the style of the pen.

Detailed Description

Pen object is used to draw lines or outline shapes.

See also Pen.

Example:

o = new ActiveXObject("Scripting.WindowSystemObject")

o.EnableVisualStyles = true

f = o.CreateForm(0,0,0,0)

f.Text = "WSO"
f.ClientWidth = 200
f.ClientHeight = 100
f.CenterControl()

with (f.Ellipse(10,10,180,80).Pen)
{
        Color = 0x000000FF
        Style = o.Translate("PS_DASH")
}

f.Show()

o.Run()

Result:

Pen.jpg


Property Documentation

LONG RW Style

Specifies the style of the pen.

This parameter can be a one of the following values:

PS_SOLID, PS_DASH, PS_DOT, PS_DASHDOT, PS_DASHDOTDOT, PS_NULL, PS_INSIDEFRAME.

LONG RW Width

Specifies the width of the pen.

Default value 1.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:12:57 2015. (C) Veretennikov A. B. 2004-2015