Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - pickmarkpos() return the current marker position of a list http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 pickmarkpos()       Return the current marker position of a list
------------------------------------------------------------------------------
 Declaration
   pick.hdr

 Syntax
   func logical pickmarkpos extern
   param value _LIST pList

 Arguments
   pList is a list pointer.

 Return
   A logical indicating if the list marker character is displayed to the
   left of a list item.

 Description
   The pickmarkpos() function returns the currently defined position for
   list display marker characters (.t. = leftmost column, .f. == rightmost
   column). By default, the pickdisp() function positions marker
   characters in the rightmost column of the display area.

   This function is normally used with string lists to be displayed via the
   pickdisp() function.

 Example
   #define EXAMPLE_LIST
   #include example.hdr

   proc Test_pickmarkpos
   vardef
      _SLIST pList
   enddef
   pList := pickinit()
   ? pickmarkpos( pList )         // prints .f.
   picksetmarkpos( pList, .t. )   // set mark position to the left side
   ? pickmarkpos( pList )         // prints .t.
   pickclear( pList )
   endproc

   proc main
   Test_pickmarkpos()
   endproc

See Also: picksetmarkpos()

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