home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8199 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.6 KB  |  55 lines

  1. Newsgroups: comp.windows.x.motif
  2. 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
  3. From: stevep@twisto.compaq.com (Steve Pearlmutter)
  4. Subject: Re: PushButton behavior
  5. In-Reply-To: ramakris@csgrad.cs.vt.edu's message of 22 Dec 92 23: 38:56 GMT
  6. Message-ID: <STEVEP.92Dec23092107@wiz.eng.hou.compaq.com>
  7. Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
  8. Organization: Compaq Computer Corporation, Houston, TX.
  9. References: <1992Dec18.100902.209@inet.d48.lilly.com> <1992Dec21.144630.10264@osf.org>
  10.     <3948@creatures.cs.vt.edu>
  11. Distribution: world,local
  12. Date: Wed, 23 Dec 1992 14:21:07 GMT
  13. Lines: 40
  14.  
  15. >>>>> On 22 Dec 92 23:38:56 GMT, ramakris@csgrad.cs.vt.edu (S.Ramakrishnan) said:
  16.  
  17. > In article <1992Dec21.144630.10264@osf.org> daniel@juliet.osf.org (Daniel Dardailler) writes:
  18.  
  19. >    Someone@inet.d48.lilly.com queries...
  20.  
  21. >   >|> I would like to have my pushbuttons behave the same way pushbuttons do
  22. >   >|> in dialogs (e.g. fileselectionbox) when the keyboardFocusPolicy is set
  23. >   >|> to true.  In dialogs, when pushbuttons take focus they show as default.
  24. >   >|> But for the pushbuttons I create, I can only make them show a border
  25. >   >|> around the pushbutton (by setting highlightOnEnter to true).
  26.  
  27. > >Default button behavior is a trait of the BulletinBoard widget.
  28. > >Look there in the doc.
  29.  
  30. > Yes, but that was not the question. Bulletinboard will call the "activateCallback" callback
  31. > of the pushbutton whih has been set as its (BB's) "defaultButton". But the problem is to
  32. > show the defaultButton the way the default buttons appear on a XmSelectionBox: with
  33. > a large border around the button.
  34.  
  35. > I have tried setting the "shadowThickness" of the XmPushButton child of the
  36. > bulletinboard to 5 and have set the pushbutton as the defaultButton of the BB.
  37. > Yet, the button doesn't look as the way defaultButtons do on a XmSelectionBox.
  38.  
  39. > This is an irritant when you are trying to construct your own dialog. They look
  40. > different from the "readymade" dialogs because of the buttons.
  41.  
  42.  
  43. > Ps: Is "borderThickness" the answer ? Should on set the "borderThickness" of the
  44. >     window of the "defaultButton" also to a high value, apart from "shadowThickness" ?
  45. >     Yuck !
  46.  
  47. I believe you are are looking for the showAsDefault resource on the PushButton.
  48.  
  49. --
  50. Steve Pearlmutter                        | Nothing I say in any way  
  51. stevep@twisto.compaq.com                 | represents the opinions of
  52. Compaq Computer Corporation, Houston, TX | my employers.  Really.
  53. "Good taste is timeless... and a good time is usually tasteless."
  54.  
  55.