Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bellcore!porthos!rruxc!wws From: wws@rruxc.uucp (Still Searching) Newsgroups: comp.windows.x.motif Subject: form dialog resizes itself when I change a button label. Keywords: using IBM RS/6000 & C++; X11-R3 & Motif 1.0 Message-ID: <1991Jun20.015841.7418@porthos.cc.bellcore.com> Date: 20 Jun 91 01:58:41 GMT Sender: netnews@porthos.cc.bellcore.com (USENET System Software) Organization: Bellcore, Livingston, NJ Lines: 25 I have a Form Dialog which contains a scrolled window and four Push-Buttons on the bottom. All widgets are attached with ATTACH_POSITION for all four sides. Everything is in a C++ Class, and each button has a callBack. For one button, I need to toggle the type of data I display and toggle the XmNlabelString to show the other state that another click will toggle to. Sounds simple, right? Well, I'm able to change the label - with XmStringCreate and XtSetArg & XtSetValues - but the window height & width shrinks with every button click! I am totally baffled. It makes no difference whether the window is empty or contains data. The darn thing keeps shrinking with every click until the whole thing is too small to focus on the buttons. Could this have anything to do with the fact that I'm changing a resource for the widget that's being passed to the callBack? Any hints or suggestions? Thank you, Wayne Scott ---------------------------------------------- wws@bcr.cc.bellcore.com I'm just a soul whose intentions are good, Oh Lord, please don't let me be misunderstood.