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>pos_abs()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
POS_ABS()
   Sets the relative positioning to return absolute values.

   Syntax
         POS_ABS(nOnOrOff)

   Arguments
         nOnOrOff    Sets the relative positioning on or off.
                     0 = Off - position includes negative numbers.
                     1 = On - position always positive numbers.

   Returns
         None

   Description
         If a coordinate is specified for the POS_REFER() function, the
         referencing is considered to be relative. This would allow certain
         mouse positions to have negative values. Setting POS_ABS() on will
         force all numbers to be positive. It is useful for showing the size
         of a box as it's being created.

         Mouse positioning is the display of the current mouse cursor location
         in current world scale coordinates. As the mouse cursor is moved
         across the viewport, the display is updated.

   Examples

         Display the box size while drawing:

         IF m_but = box_tool
            POS_ABS(1)                  && Set ref to positive values
            POS_REFER(KP_SCALE_X(),;    && Set ref to current mouse position
               KP_SCALE_Y())
            MS_OBJECT(1,cur_clr,2,0)    && Draw box with mouse
            POS_REFER()                 && Set ref back to origin
         ENDIF

See Also: IS_POS_REL() POS_REFER()

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