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>is_pos_rel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
IS_POS_REL()
   Determines if the current reference positioning is relative.

   Syntax
         nYesOrNo = IS_POS_REL()

   Arguments
         None

   Returns
         nYesOrNo    Returns whether the current reference positioning is
                     relative.
                     0 = Positioning is from viewport origin.
                     1 = Positioning is relative to a specified point.

   Description
         If parameters are specified for the POS_REFER() function, indicating
         a point to base the mouse cursor positioning, the referencing is
         considered to be relative. If no parameters were passed to the
         function, positioning is based on the viewport origin. This is
         considered not to be relative.

         IS_POS_REL() determines whether the current positional referencing is
         relative or not.

   Examples

         Toggles the referencing and display mode based on the current status

         IF IS_POS_REL() = 1              && Is the system relative?
            POS_REFER()                   && Set reference to origin
            POS_COLOR(1,7)                && Set new color : fg, bg
         ELSE                             && ..not relative
            POS_REFER(HOT_X(),HOT_Y())    && Set reference to hot point
            POS_COLOR(2,7)                && Set new color : fg, bg
         ENDIF

See Also: POS_ABS() POS_REFER()

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