Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>layer_open()</b> c_demo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LAYER_OPEN()                                                        C_DEMO
   Opens the next available layer.

   Syntax
         nLayerNumber = LAYER_OPEN(nDefaultColor [,nBox] [,nPoly] [,nCircle]
                                   [,nText])

   Arguments
         nDefaultColor     Sets the default color of the layer's objects.
         OPTIONAL PARAMETERS
         nBox              Default search method for box (type 1).
         nPoly             Default search method for polygon (type 2).
         nCircle           Default search method for circle (type 10-17).
         nText             Default search method for text (type 20).
                                 -1 = Do not find this object.
                                  0 = Find object on line.
                                  1 = Find inside of closed object.
   Returns
         nLayerNumber      New layer number.

   Description
         LAYER_OPEN() opens a new layer and assigns the next sequentially
         available layer number to a maximum of 15. The default color used for
         any objects subsequently added to the layer will be the specified
         color. The default search method can be set for new objects created
         on a layer. nBox sets the default search method for a box. If you set
         it to a -1, then it will not be found at all. The default is to find
         the object by touching the mouse cursor on the edge of the object.
         Search method 0 will find the object within 3 pixels of any of the
         object's edges. The distance of 3 pixels can be changed with
         CAD_SETUP(). A setting of 1 will find a closed object, polygon or
         box, when the mouse is anywhere inside the object. nPoly and nCircle
         set the default search method for polygons and circles. nText has two
         search methods: -1, and 0 or 1. 0 or 1 will both find the text
         anywhere inside the text box. The default for text is 1.

See Also: LAYER_CLOS()

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