Example #1
0
  void
interactlinktype ()
{
  spectype *specspanalloc();
  med linktypenum;
	if(!iswindow){
        linktypenum = selectmenu (currentwindow->tm+currentwindow->rcursl, currentwindow->lm+currentwindow->rcursc, NLINKTYPES, linktypelist);
	maketempthreeset(linktypenum);
	}else{
		makemenu(linktypelist,LINKTYPEMENUCHOICE0,4,"choose Link type");
	}
}
Example #2
0
void *Runselectmenu(void *arg) {
/*************************************************

    Text_Box1  6 data values
    RadioButtons1  1 data value
    CheckBox2  1 data value
    Text_Box2  1 data values

*************************************************/
   DIX *X;
   int   v0 = 1;
   int   v1 = 1;
   int   v2 = 1;
   int   v3 = 1;
   int   v4 = 1;
   int   v5 = 1;
   int   v6 = 1;
   int   v7 = 1;
   char  v8[100]=" " ;
   void* v[9];
   v[0]=(void *)(&v0);
   v[1]=(void *)(&v1);
   v[2]=(void *)(&v2);
   v[3]=(void *)(&v3);
   v[4]=(void *)(&v4);
   v[5]=(void *)(&v5);
   v[6]=(void *)(&v6);
   v[7]=(void *)(&v7);
   v[8]=(void *)(v8);
   void *pt=arg; /* pointer to send any extra information */
   X = (DIX *)arg;
   v0 = X->x2-X->x1;
   v1 = X->y2-X->y1;
   v2 = X->lngth;
   v3 = X->width;
   v4 = X->offset;
   v5 = X->w;
   strcpy(v8,X->Wid);
   selectmenu(Parent,v,pt );
   X->x2=X->x1+v0;
   X->y2=X->y1+v1;
   X->lngth = v2;
   X->width = v3;
   X->offset=v4;
   if(v5==0) v5=2;
   X->w = v5;
   strcpy(X->Wid,v8);

   return NULL;
}