model_server/gala/src/dis_confirm.cxx
// Place the labels on the dialog.
Place the labels on the dialog.
Place the labels on the dialog .
vbool place_labels(GConfirmDialog* myDialog, gString labels[MAX_LABELS], int numLabels)
{
    vbool status = vTRUE;
    switch (numLabels) {
	case 1:
		myDialog->SetInterpVariable((vchar*)"Label2", labels[0]);
		break;
	case 2:
		myDialog->SetInterpVariable((vchar*)"Label1", labels[0]);
		myDialog->SetInterpVariable((vchar*)"Label2", labels[1]);
		break;
	case 3:
		myDialog->SetInterpVariable((vchar*)"Label1", labels[0]);
		myDialog->SetInterpVariable((vchar*)"Label2", labels[1]);
		myDialog->SetInterpVariable((vchar*)"Label3", labels[2]);
		break;
	default:
		printf("Trying to place %d labels when only 1-%d are allowed!\n",
			numLabels, MAX_LABELS);
		break;
    };
    return(status);
}
vbool place_labels ( GConfirmDialog * myDialog , gString labels [ MAX_LABELS ] , int numLabels ) { vbool status = vTRUE ; switch ( numLabels ) { case 1 : myDialog -> SetInterpVariable ( ( vchar * ) " " , labels [ 0 ] ) ; break ; case 2 : myDialog -> SetInterpVariable ( ( vchar * ) " " , labels [ 0 ] ) ; myDialog -> SetInterpVariable ( ( vchar * ) " " , labels [ 1 ] ) ; break ; case 3 : myDialog -> SetInterpVariable ( ( vchar * ) " " , labels [ 0 ] ) ; myDialog -> SetInterpVariable ( ( vchar * ) " " , labels [ 1 ] ) ; myDialog -> SetInterpVariable ( ( vchar * ) " " , labels [ 2 ] ) ; break ; default : printf ( " \n " , numLabels , MAX_LABELS ) ; break ; } ; return ( status ) ; }
Place the labels on the dialog.
Place the labels on the dialog .
// Place up to 3 labels.