model_server/gala/src/dis_cmds.cxx
//  Call to set and update checkbox status
Call to set and update checkbox status
Call to set and update checkbox status
int dis_gdListViewChangeCheckStatus (ClientData,
							        Tcl_Interp* interp, int argc, char* argv[]) {
    gInit (dis_gdChangeCheckStatus);
    if (argc != 5) {
	   Tcl_SetResult (interp, "wrong number of arguments", TCL_STATIC);
	   return TCL_ERROR;
    }
    gdListView *item = (gdListView *)dis_findItem(interp, (vchar*) argv[1]);
    if(!item) TCL_EXECERR1 ("listview not found", argv[1]);
    int row       = atoi(argv[2]);
    int col       = atoi(argv[3]);
  	ListViewCell *cell = item->GetCellInfo(row, col);
	if(cell!=NULL) {
		if(cell->check_button!=NULL) {
		   cell->check_button->SetValueAndRedraw(atoi(argv[4]));
	    }
		item->SetFocus(row,col);
	}
	return TCL_OK;
}
int dis_gdListViewChangeCheckStatus ( ClientData , Tcl_Interp * interp , int argc , char * argv [ ] ) { gInit ( dis_gdChangeCheckStatus ) ; if ( argc != 5 ) { Tcl_SetResult ( interp , " " , TCL_STATIC ) ; return TCL_ERROR ; } gdListView * item = ( gdListView * ) dis_findItem ( interp , ( vchar * ) argv [ 1 ] ) ; if ( ! item ) TCL_EXECERR1 ( " " , argv [ 1 ] ) ; int row = atoi ( argv [ 2 ] ) ; int col = atoi ( argv [ 3 ] ) ; ListViewCell * cell = item -> GetCellInfo ( row , col ) ; if ( cell != NULL ) { if ( cell -> check_button != NULL ) { cell -> check_button -> SetValueAndRedraw ( atoi ( argv [ 4 ] ) ) ; } item -> SetFocus ( row , col ) ; } return TCL_OK ; }
Call to set and update checkbox status
Call to set and update checkbox status