home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!ramakris
- From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
- Newsgroups: comp.windows.x.motif
- Subject: Re: PushButton behavior
- Message-ID: <3948@creatures.cs.vt.edu>
- Date: 22 Dec 92 23:38:56 GMT
- References: <1992Dec18.100902.209@inet.d48.lilly.com> <1992Dec21.144630.10264@osf.org>
- Sender: usenet@creatures.cs.vt.edu
- Distribution: world,local
- Organization: VPI&SU Computer Science Department, Blacksburg, VA
- Lines: 32
-
- 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 !
-
- ---
- S Ramakrishnan, CS Dept, McBryde Hall, VaTech
-