ClientToWindow Method (ALog)

Converts client sizes into window sizes.

Syntax

Object.ClientToWindow ( pcx, pcy )

The ClientToWindow method syntax has the following parts:

 

Name

Type

Description

Object

ALog

ALog control

pcx

Val Long

The x-coordinate of the point to convert, in client coordinates. When ClientToWindow returns, this variable contains the x-coordinate of the point in window coordinates.

pcy

Val Long

The y-coordinate of the point to convert, in client coordinates. When ClientToWindow returns, this variable contains the y-coordinate of the point in window coordinates.

Comments

Converts the client coordinates of a point to window coordinates. Client coordinates are relative to the upper-left corner of the client area; window coordinates are relative to the upper-left corner of a window.

Example

The following example will converts client sizes into window sizes for the ALog control:

log1.ClientToWindow(lxpixels, lypixels)

Applies to

ALog

See Also

ExecWb, FixedFont, ProportionalFont