Path: utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!uunet!mcsun!cernvax!chx400!chx400!sicsun!masg1!stauffer From: stauffer@masg1.epfl.ch (Laurent Stauffer) Newsgroups: comp.windows.x.motif Subject: Unresizable windows ? Message-ID: <1161@sicsun.epfl.ch> Date: 11 Mar 91 12:47:08 GMT Sender: news@sicsun.epfl.ch Reply-To: stauffer@masg1.epfl.ch (Laurent Stauffer) Lines: 46 How can I specify to the window manager that windows created by my application are not allowed to be resized ? I can't set the "XmNminWidth", "XmNmaxWidth", "XmNminHeight" and "XmNmaxHeight" resources of the corresponding applicationSell Widget because I don't know the size of the window at creation time. I tried unsuccessfully to get the height and width of the window after the applicationSell Widget had been popup and to set the four above resources with the got values : #include #include #include int main(Cardinal argc,char **argv) { int i; Arg args[5]; Widget hello,toplevel; Dimension larg,haut; toplevel = XtInitialize(argv[0],"XHello",NULL,0,&argc,argv); hello = XtCreateManagedWidget("hello",xmLabelWidgetClass, toplevel,NULL,0); XtRealizeWidget(toplevel); i=0; XtSetArg(args[i],XmNheight, &haut);i++; XtSetArg(args[i],XmNwidth, &larg);i++; XtGetValues(toplevel,args,i); i=0; XtSetArg(args[i],XmNminHeight, haut);i++; XtSetArg(args[i],XmNminWidth, larg);i++; XtSetArg(args[i],XmNmaxHeight, haut);i++; XtSetArg(args[i],XmNmaxWidth, larg);i++; XtSetValues(toplevel,args,i); XtMainLoop(); } -- Laurent Stauffer ROSO - DMA - EPFL Ecublens 1015 Lausanne SUISSE