home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!twisto!stevep
- From: stevep@twisto.compaq.com (Steve Pearlmutter)
- Subject: Re: PushButton behavior
- In-Reply-To: ramakris@csgrad.cs.vt.edu's message of 22 Dec 92 23: 38:56 GMT
- Message-ID: <STEVEP.92Dec23092107@wiz.eng.hou.compaq.com>
- Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
- Organization: Compaq Computer Corporation, Houston, TX.
- References: <1992Dec18.100902.209@inet.d48.lilly.com> <1992Dec21.144630.10264@osf.org>
- <3948@creatures.cs.vt.edu>
- Distribution: world,local
- Date: Wed, 23 Dec 1992 14:21:07 GMT
- Lines: 40
-
- >>>>> On 22 Dec 92 23:38:56 GMT, ramakris@csgrad.cs.vt.edu (S.Ramakrishnan) said:
-
- > In article <1992Dec21.144630.10264@osf.org> daniel@juliet.osf.org (Daniel Dardailler) writes:
-
- > Someone@inet.d48.lilly.com queries...
-
- > >|> I would like to have my pushbuttons behave the same way pushbuttons do
- > >|> in dialogs (e.g. fileselectionbox) when the keyboardFocusPolicy is set
- > >|> to true. In dialogs, when pushbuttons take focus they show as default.
- > >|> But for the pushbuttons I create, I can only make them show a border
- > >|> around the pushbutton (by setting highlightOnEnter to true).
-
- > >Default button behavior is a trait of the BulletinBoard widget.
- > >Look there in the doc.
-
- > Yes, but that was not the question. Bulletinboard will call the "activateCallback" callback
- > of the pushbutton whih has been set as its (BB's) "defaultButton". But the problem is to
- > show the defaultButton the way the default buttons appear on a XmSelectionBox: with
- > a large border around the button.
-
- > I have tried setting the "shadowThickness" of the XmPushButton child of the
- > bulletinboard to 5 and have set the pushbutton as the defaultButton of the BB.
- > Yet, the button doesn't look as the way defaultButtons do on a XmSelectionBox.
-
- > This is an irritant when you are trying to construct your own dialog. They look
- > different from the "readymade" dialogs because of the buttons.
-
-
- > Ps: Is "borderThickness" the answer ? Should on set the "borderThickness" of the
- > window of the "defaultButton" also to a high value, apart from "shadowThickness" ?
- > Yuck !
-
- I believe you are are looking for the showAsDefault resource on the PushButton.
-
- --
- Steve Pearlmutter | Nothing I say in any way
- stevep@twisto.compaq.com | represents the opinions of
- Compaq Computer Corporation, Houston, TX | my employers. Really.
- "Good taste is timeless... and a good time is usually tasteless."
-
-