Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bellcore!porthos!rruxc!wws From: wws@rruxc.uucp (Still Searching) Newsgroups: comp.windows.x.motif Subject: Re: form dialog resizes itself when I change a button label. Summary: setting XmNrecomputeSize to FALSE solves the problem for me! Thanks to Andrew Wason for leading me to this solution. Keywords: using IBM RS/6000 & C++; X11-R3 & Motif 1.0 Message-ID: <1991Jun20.153013.11832@porthos.cc.bellcore.com> Date: 20 Jun 91 15:30:13 GMT References: <1991Jun20.015841.7418@porthos.cc.bellcore.com> Sender: netnews@porthos.cc.bellcore.com (USENET System Software) Organization: Bellcore, Livingston, NJ Lines: 14 > Well, I'm able to change the label - with XmStringCreate and XtSetArg & > XtSetValues - but the window height & width shrinks with every button click! The labelStrings I'm toggling between are not of the same length; they are called "Long" and "Short." I believe that's what was causing the size recalculation. Setting XmNrecomputeSize to FALSE gives me what I want. However, if the strings differed by many more characters, this might not be adequate because of clipping. Wayne ---------------------------------------------- wws@bcr.cc.bellcore.com I'm just a soul whose intentions are good, Oh Lord, please don't let me be misunderstood.