Win32Prn() > Print output methods |
|
|
oWin32Prn:box()
Prints a box.
Syntax
:box( <nX1> , ;
<nY1> , ;
<nX2> , ;
<nY2> , ;
[<nWidth>], ;
[<nHeight>] ) --> lSuccess
Arguments
- <nX1> and <nY1>
- These two numeric values are the X and Y coordinates of the upper-left corner
of the box to print.
- <nX2> and <nY2>
- These two numeric values are the X and Y coordinates of the lower-right corner
of the box to print.
- <nWidth> and <nHeight>
- If both numeric parameters are passed, the box is drawn with rounded edges.
<nWidth> defines the radius in pixels for a rounded edge in horizontal, and <nHeight>
in vertical direction.
Description
Method :box() accepts the coordinates of a rectangle and draws the
rectangle using the current pen. The pen must be selected previously with
method :setPen(). If both parameters
<nWidth> and <nHeight> are specified, the box is drawn with rounded edges.
The method returns a logical value indicating success of the operation.
Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe