[comp.windows.x.motif] Button auto-placement

kquick@dcs.simpact.com (Kevin Quick, Simpact Assoc., Inc.) (06/04/91)

A while back, I posted a message asking if anyone new how to manage button
widgets the same way that the selection box or file selection box widgets do;
maintaining a relative position of the button without changing the size of
the button, and reorganizing placement if the window is to small in one
direction or another.  For those who don't know about this but want to see
some nice management of buttons, use xmdialogs to manage a selection box and
then start playing with the size of the selection box...

I received one response, which was helpful in providing a consistent display
at least, but caused the size of the buttons to grow to match the width of
the window and did not support the re-ordering capability.  (Many thanks to
that person!))

I am asking again.  Anybody who didn't respond the first time because they
figured that someone else would, please respond now.  Send all responses
via email and I will summarize back to here.  If I get no responses, I'll
assume that this functionality is not available to the outside world, and
will take steps to submit an RFT to the OSF Motif developers.

Thanks in advance!
--
	-- Kevin Quick,  Simpact Associates, Inc.,  San Diego, CA.
	   UUCP: kquick@simpact.com  (or simpact!kquick@crash.cts.com)

alex@hpgnd.grenoble.hp.com (Alexis MERMET-GRANDFILLES) (06/11/91)

Hello,

If you use a form for your buttons area, then you will be able to attach
only the top-left corner of each buttons ( ATTACH_POSITION on top and left ).

Therefore, buttons size will not change but their position should move
relative to each other ...


I Hope that's helps.


--------------------------------------------------------------------------
Alexis MERMET-GRANDFILLES             HEWLETT-PACKARD
Tel: 76 62 12 11                      Grenoble Network Division
Fax: 76 62 52 00                      5 avenue Raymond Chanas - EYBENS
alex@hpgndxo.hp.com                   38053 GRENOBLE CEDEX 9
-------------------------------------------------------------------------