Older Newer
Wed, 19 Nov 2008 14:50:11 . . . . (mehdi)?


Changes by last author:

Added:
= createRoundRectRgn =

== Syntax ==

:region createRoundRectRgn(int x1, int y1, int x2, int y2, int w, int h)

== Arguments ==

:x1

The x coordinate (in DBUs) of the upper-left edge of the rectangle.

:y1

The y coordinate (in DBUs) of the upper-left edge of the rectangle.

:x2

The x coordinate (in DBUs) of the lower-right edge of the rectangle.

:y2

The y coordinate (in DBUs) of the lower-right edge of the rectangle.

:w

Width of the ellipse for the rounded corners

:h

Height of the ellipse for the rounded corners

== Return ==

Return a rounded rectangular region (see comments)

== Description ==

Allows to define a rounded rectangular visual region, that can be for instance handled by the functions refreshRgn or setDialogRegion

== Example ==

<code>

refreshRgn( createRoundRectRgn(215,30,410,250, 10,20) );

</code>

== Also see ==

createRectRgn, createCircularRgn, createEllipticRgn, createPolyRgn, refreshRgn, setDialogRegion

== Comments ==

:"region" correspond to a particular FM type or object that might need to be better documented or defined. You can't directly cast it to an integer, despite it behaves like an integer.

<code>

</code>

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.