Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>roundrect()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RoundRect()
Draw a rectangle with rounded corners
------------------------------------------------------------------------------

Syntax
RoundRect( <hDC>, <nLeft>, <nTop>, <nRight>, <nBottom>,
           <nEWidth>, <nEHeight> )   -->   lSuccess

Arguments
<hDC> specifies the device context for a window.

<nLeft>, <nTop> specify the position of the top left-hand
corner of the rectangle in pixels.

<nRight>, <nBottom> specify the position of the bottom right-
hand corner of the rectangle in pixels.

<nEWidth>, <nEHeight> specify the the width and height of the
ellipse used to shape the corners.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function draws a rectangle with curved corners using the
current pen for the border, and the current brush to fill its
interior.

The figure drawn extends up to and including the top and left
bounds, but excluding the bottom and right values.

Example
RoundRect( hDC, 50, 50, 200, 200, 30, 50 )


See Also: Arc() Chord() Ellipse() Pie() Polygon() PolyLine() Rectangle()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson