home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8183 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.9 KB

  1. Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!ramakris
  2. From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: PushButton behavior
  5. Message-ID: <3948@creatures.cs.vt.edu>
  6. Date: 22 Dec 92 23:38:56 GMT
  7. References: <1992Dec18.100902.209@inet.d48.lilly.com> <1992Dec21.144630.10264@osf.org>
  8. Sender: usenet@creatures.cs.vt.edu
  9. Distribution: world,local
  10. Organization: VPI&SU Computer Science Department, Blacksburg, VA
  11. Lines: 32
  12.  
  13. In article <1992Dec21.144630.10264@osf.org> daniel@juliet.osf.org (Daniel Dardailler) writes:
  14.  
  15.    Someone@inet.d48.lilly.com queries...
  16.  
  17.    >|> I would like to have my pushbuttons behave the same way pushbuttons do
  18.    >|> in dialogs (e.g. fileselectionbox) when the keyboardFocusPolicy is set
  19.    >|> to true.  In dialogs, when pushbuttons take focus they show as default.
  20.    >|> But for the pushbuttons I create, I can only make them show a border
  21.    >|> around the pushbutton (by setting highlightOnEnter to true).
  22.  
  23.  >Default button behavior is a trait of the BulletinBoard widget.
  24.  >Look there in the doc.
  25.  
  26. Yes, but that was not the question. Bulletinboard will call the "activateCallback" callback
  27. of the pushbutton whih has been set as its (BB's) "defaultButton". But the problem is to
  28. show the defaultButton the way the default buttons appear on a XmSelectionBox: with
  29. a large border around the button.
  30.  
  31. I have tried setting the "shadowThickness" of the XmPushButton child of the
  32. bulletinboard to 5 and have set the pushbutton as the defaultButton of the BB.
  33. Yet, the button doesn't look as the way defaultButtons do on a XmSelectionBox.
  34.  
  35. This is an irritant when you are trying to construct your own dialog. They look
  36. different from the "readymade" dialogs because of the buttons.
  37.  
  38.  
  39. Ps: Is "borderThickness" the answer ? Should on set the "borderThickness" of the
  40.     window of the "defaultButton" also to a high value, apart from "shadowThickness" ?
  41.     Yuck !
  42.  
  43. ---
  44. S Ramakrishnan, CS Dept, McBryde Hall, VaTech
  45.