These properties, events, and methods are common to many visual form components:

Property

Default

Description

before

 

The next object in the z-order

borderStyle

Default

Specifies whether a box border appears (0=Default, 1=Raised, 2=Lowered, 3=None, 4=Single, 5=Double, 6-Drop Shadow, 7=Client, 8=Modal, 9=Etched In, 10=Etched Out)

dragEffect

0

The type of Drag&Drop operation to be performed (0=None, 1=Copy, 2=Move)

enabled

true

Whether a component can get focus and operate

fontBold

false

Whether the text in a component appears in bold face

fontItalic

false

Whether the text in a component appears italicized

fontName

Arial

The typeface of the text in a component

fontSize

10

The point size of the text in a component

fontStrikeout

false

Whether the text in a component appears striked-through

fontUnderline

false

Whether the text in a component is displayed underlined

form

 

The form that contains a component

height

 

Height in the form’s current metric units

helpFile

 

Help file name

helpId

 

Help index topic or context number for context-sensitive help

hWnd

 

The Windows handle for a component

id

-1

Supplementary control ID number

left

0

The location of the left edge of a component in the form’s current metric units, relative to the left edge of its container

mousePointer

0

The mouse pointer type when the pointer is over a component

name

 

The name of a component

pageno

1

The page of the form on which a component appears

parent

 

A component’s immediate container

printable

true

Whether a component is printed when the form is printed

speedTip

 

Tool tip displayed when pointer hovers over a component

statusMessage

 

Message displayed in status bar when a component has focus

tabStop

true

Whether a component is in the tab sequence

top

0

The location of the top edge of a component in the form’s current metric units, relative to the top edge of its container

visible

true

Whether a component is visible

width

 

Width in the form’s current metric units

 

Event

Parameters

Description

canRender

 

Reports only: before a component is rendered; return value determines whether component is rendered

onDesignOpen

<from palette expL>

After a component is first added from the palette and then every time the form is opened in the Form Designer

onDragBegin

 

When a Drag&Drop operation begins for a component

onGotFocus

 

After a component gains focus

onHelp

 

When F1 is pressed—overrides context-sensitive help

onLeftDblClick

<flags expN>,
<column expN>,
<row expN>

When the left mouse button is double-clicked

onLeftMouseDown

<flags expN>,
<column expN>,
<row expN>

When the left mouse button is pressed

onLeftMouseUp

<flags expN>,
<column expN>,
<row expN>

When the left mouse button is released

onLostFocus

 

After a component loses focus

onMiddleDblClick

<flags expN>,
<column expN>,
<row expN>

When the middle mouse button is double-clicked

onMiddleMouseDown

<flags expN>,
<column expN>,
<row expN>

When the middle mouse button is pressed

onMiddleMouseUp

<flags expN>,
<column expN>,
<row expN>

When the middle mouse button is released

onMouseMove

<flags expN>,
<column expN>,
<row expN>

When the is moved over a component

onOpen

 

After the form containing a component is opened

onRender

 

Reports only: after a component is rendered

onRightDblClick

<flags expN>,
<column expN>,
<row expN>

When the right mouse button is double-clicked

onRightMouseDown

<flags expN>,
<column expN>,
<row expN>

When the right mouse button is pressed

onRightMouseUp

<flags expN>,
<column expN>,
<row expN>

When the right mouse button is released

 

when

<form open expL>

When attempting to give focus to a component; return value determines whether the component gets focus.

 

Method

Parameters

Description

drag( )

<type expC>
<name expC>
<icon expC>

Initiates a Drag&Drop operation for a component

move( )

<left expN>
[,<top expN>
[,<width expN>
[,<height expN>]]]

Repositions and/or resizes a component

release( )

 

Explicitly releases a component from memory

setFocus( )

 

Sets focus to a component