Newsgroups: comp.windows.x.motif Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!ispd-newsserver!sydorow From: sydorow@bisco.kodak.com (Steve Sydorowicz) Subject: Re: Weird highlightThickness?? Message-ID: <1991May13.202716.22106@ssd.kodak.com> Sender: news@ssd.kodak.com Organization: Eastman Kodak References: <730@modulex.dk> Distribution: comp Date: Mon, 13 May 91 20:27:16 GMT ssn@modulex.dk (Svend Skafte Nielsen) writes: > Can anyone explain this? > > When I set the highlight thickness of a pushbutton to a value > larger than 2 and subsequently retrieves this by XtGetValues, > the return value is 2 lower than the actual value, although the > pushbutton is displayed correctly, with the desired highlight > thickness. > I suspect it has something to do with the way rowcolumn manages > its children, but I don't understand how and why! > > For an example, try out the code listed below. > [code deleted] You did not mention which version of Motif you were using, but I think I can still give you a reasonable answer.... Before 1.1 (or 1.1.1) the computation method for this resource in PushButton had a bug in it related to the defaultButtonShadowThickness resource. As you'll notice (or not :-)), the default for this resource used to be based on showAsDefault (which was 2). Hence, the off by 2 problem. If this all seems confusing, don't worry, it should be fixed in Motif 1.1 (and 1.1.1 and 1.1.2). Sorry I can't be more specific, I'm recalling this from memory of about a year ago. If you have 1.1 or later and it is still wrong, send in a bug report to osf@motif-defect. This *was* fixed at some point and hopefully not re-broken. Steve -- -------------------------------------------------------------------------------- Stephen J. Sydorowicz Azatar Computer Systems REPLY TO: sydorow@bisco.kodak.com (716)726-5636 Opinions expressed do not reflect those of my employer