Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
expr list_view3(list-name,row,col,size,abort-key, options,ret-col[,view-col,...]) list list-name int row,col,size,abort-key,options,ret-col expr view-col
list-name | specifies the list.
| ||||||||||||||||||
row |
specifies the row position for the displayed window. -1 places the upper
left of the box at the cursor position. -2 places the box in the center of the screen.
| ||||||||||||||||||
col |
specifies column location of the view box; -1 places the upper left of the box at the cursor position. -2 places the box in the
center of the screen.
| ||||||||||||||||||
size | specifies the number of rows to display; if it is -1, the function displays as many rows as will fit.
| ||||||||||||||||||
view-col | (optional) specifies which columns to display.
Please refer to
list_view's
definition of view-col for more details.
The default is all columns.
| ||||||||||||||||||
abort-key | if greater than zero, specifies the key that can be
used to cancel the function's operation (returns NULL).
| ||||||||||||||||||
options | define how the list is to be displayed.
The values are defined in trim.h.
| ||||||||||||||||||
ret-col | the absolute zero-based column position of the data to be returned. |
See list_colaux to force column formatting.
{ list files; string fn[80]; string fn2[80]; int cnt; fn = tmpnam(); system("ls > " ^^ fn); files = list_open(fn,1000,"Hit Enter to edit a file, F3 to quit"); while (true) { fn2 = list_view3(files,5,5,10,key_f3,opt_highlight,0); if (fn2 == NULL) break; system("vi " ^^ fn2); } delete(fn); }