[comp.windows.x.motif] Buttons on Motif dialog boxes

gtoye@hp835.mitek.com (Gene Toye) (05/11/91)

Hello,
Can anyone enlighten me on how the buttons are set up on the standard
Motif dialogs (SelectionBox, FileSelectionBox, etc, MessageBox, etc.)
I would like to have the buttons on some custom dialogs I am writing
act the same way and and having some trouble getting the same behaviors:

1. Buttons are uniform size. (OK, I can do this brute force with XmNwidth)
2. Buttons are uniform spacing across the dialog and will increase their
   spacing uniformly if the dialog is enlarged, BUT will not 
   reposition to less than their original spacing if the dialog is 
   shrunk and are instead clipped.  (I can get the first part of this 
   on a form with XmATTACH_POSITION but how to get the enforced minimum
   spacing, currently mine overlap when the dialog is resized smaller).
3. Ok button is aligned vertically with other widgets on the dialog. 
   (more exactly, the border from XmNshowAsDefault is aligned).
   (currently doing this with brute force adjustment of spacing of ok
   button.)

Example code would be appreciated.  I am working with Motif 1.0 on
an HP 9000/825.  (Wish I had the Motif source, then I could just
look at their implementation. Oh well, money doesn't grow on trees.)

Thanks !!!!
-- 
Gene Toye, Software Engineer                               gtoye@hp835.mitek.com
OpenConnect Systems, 2033 Chennault Drive, Carrollton, TX 75006
214/308-0454
DISCLAIMER: My employer had no idea I was going to say that.