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>grid_set()</b> c_demo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GRID_SET()                                                          C_DEMO
   Sets the status and size of the grid system.

   Syntax
         GRID_SET(nOnOrOff [,nGridColor,nGridHorz,nGridVert])

   Arguments
         nOnOrOff    Sets the the grid system on or off.
                                    0 = Off.
                                    1 = On.
         OPTIONAL PARAMETERS
         nGridColor  Sets the color for the grid points (0 - 255).
         nGridHorz   Sets the horizontal distance between the points.
         nGridVert   Sets the vertical distance between the points.

   Returns
         None

   Description
         GRID_SET() sets the status and characteristics of the grid system.
         The grid is used for dividing the drawing area with evenly spaced
         points that the mouse cursor can be 'snapped' to. This helps in
         building equally spaced and sized objects.

         By default, the right mouse button snaps the cursor to the closest
         grid point. When drawing an object with MS_OBJECT(), the cursor can
         be snapped to the closest grid point.

   Examples
         * To turn on a grid with white points, equally spaced 40
         * units apart from each other horizontally and vertically -
         GRID_SET(1,7,40,40)

See Also: GRID_PNT()

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