List Setup

To create a scrolling list, call the GIL function GSsclistsetup(). GSsclistsetup() takes 23 parameters - more than any other GIL call! The GSsclistsetup() call for Checkbook is shown below:

GSsclistsetup(LIST_WINDOW, LIST_DA, /* window, field names */
NUM_COLUMNS, /* number of columns */
LIST_FLD, /* picklist field */
0, 0, /* row, column gaps */
JUST_LEFT, /* label justification */
label_func, /* list functions */
text_func,
in_func,
out_func,
click_func,
SCROLLBAR_DA, /* scroll bar dragarea name */
GSconvertcolor("sclistcol"), /* colors */
GSconvertcolor("sclisttl"),
GSconvertcolor("sclistbr"),
num_checks, 0, /* number of items, slot # of top item */
NULL, /* scroll notification */
LIST_UP_BTN, LIST_DOWN_BTN, /* button names */
&list_handle, &sclist_handle); /* list handles */


back forward