Older Newer
Mon, 01 Jun 2009 14:18:37 . . . . (Ron C)? [Fixed syntax statement to be Poly]


Changes by last author:

Added:
= createPolyRgn =

== Syntax ==

:region createPolyRgn(int fill_mode,int x1, int y1, int x2, int y2, ..., int xn, int yn)

== Arguments ==

:fill_mode

Use either the predefined constant ALTERNATE or WINDING to set this parameter. Then FM will either fill or not overlapping areas.

:x1,y1, x2,y2, ..., xn,yn

At least three coordinate pairs must be defined.

== Return ==

Return a polygonal region (see comments).

== Example ==

<code>

setDialogRegion(createPolyRgn(WINDING,6,50,45,6,100,30,95,87,36,102));

</code>

== Also see ==

createCircularRgn, createEllipticRgn, createRectRgn, createRoundRectRgn, createCircularRgn, 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>

:The previous example doesn't work properly. Fix ?

<code>

</code>

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