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>rc_pos()</b> c_exam19 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RC_POS()                                                            C_EXAM19
   Returns the position for fixed-space text.

   Syntax
         RC_POS(nRow,nCol,nFont,nNumRows,nNumCols,@nX1,@nY1,@nX2,@nY2)

   Arguments
         nRow        Text row position
         nCol        Text column position
         nFont       Font handle.
         nNumRows    Height of text in rows.
         nNumCols    Length of text in characters.

   Returns

         @nX1        Left pixel position
         @nY1        Upper pixel position
         @nX2        Right pixel position
         @nY2        Lower pixel position

   Description
         RC_POS() returns the screen box taken up by fixed-space text
         generated by SAY_FIXED() or the screen drivers for a particular row
         and column size. The pixel position is returned in variables passed
         by reference.

   Examples

         M_x1=0
         M_y1=0
         M_x2=0
         M_y2=0
         VIEW_SWAP(0,0)
         SAY_FIXED(4, 13, 2, 15, 0, "Moving Objects Example")
         SAY_FIXED(6, 13, 2, 15, 0, "Help        Snap Move ")
         SAY_FIXED(8, 13, 2, 15, 0, "Drag Move   Drag Point")
         SAY_FIXED(10,13, 2, 15, 0, "Snap point  Copy      ")
         SAY_FIXED(12,13, 2, 15, 0, "Quit                  ")
         SAY_FIXED(14,13, 2, 15, 0, "Select from icon menu ")
         RC_POS(4,13,2,11,22,@M_x1,@M_y1,@M_x2,@M_y2)
         FBOX(M_x1-2,M_y1-2,M_x2+2,M_y2+2,15)
         VIEW_SWAP(vh,0)

See Also: SAY_FIXED()

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