next up previous contents
: Value Items : Tina Windows : Check Lists   目次

Choice Lists

Choices are like checks but only one item can be selected.

tw_choice(menu_name,
  func, value,
        name_1, name_2, ... ,
        NULL);
char *name, *name_1, ..., *name_k;
void (*func)();
int value;

On changing the choice item the integer value is set to the number of the chosen item (starting at 0), and func is called with this as argument. The initial state of value sets the display appropriately (remember to make this correspond to the initial state of the application).



root 平成20年12月5日