[comp.windows.x] Fixed Forms

richards@eng.AUburn.EDU (Eric J. Richards) (08/09/90)

	Thanks to all those who helped me with my Athena Form
widget woes!  Depicted below is the "before and after" of the
problem.  It seems that in addition to setting the B columns
"fromHoriz" constraint one also needs to set B2..B3's "fromVert"
constraint to make them line up correctly.

 Orignal bad relationship:         Correct and "good" relationship:

 +-----------------------------+   +-----------------------------+  
 |                             |   |                             |  
 | +-------+         +-------+ |   | +-------+         +-------+ |  
 | |       |         |       | |   | |       |         |       | |  
 | |  A 1  |  <--    |  B 1  | |   | |  A 1  |  <--    |  B 1  | |  
 | |       |         |       | |   | |       |         |       | |  
 | +-------+         +-------+ |   | +-------+         +-------+ |  
 |     ^                       |   |     ^                 ^     |  
 |     |                       |   |     |                 |     |  
 | +-------+         +-------+ |   | +-------+         +-------+ |  
 | |       |         |       | |   | |       |         |       | |  
 | |  A 2  |  <--    |  B 2  | |   | |  A 2  |  <--    |  B 2  | |  
 | |       |         |       | |   | |       |         |       | |  
 | +-------+         +-------+ |   | +-------+         +-------+ |  
 |     ^                       |   |     ^                 ^     |  
 |     |                       |   |     |                 |     |
 | +-------+         +-------+ |   | +-------+         +-------+ |  
 | |       |         |       | |   | |       |         |       | |  
 | |  A 3  |  <--    |  B 3  | |   | |  A 3  |  <--    |  B 3  | |  
 | |       |         |       | |   | |       |         |       | |  
 | +-------+         +-------+ |   | +-------+         +-------+ |  
 |                             |   |                             |  
 +-----------------------------+   +-----------------------------+  

	That gets the B column uncluttered, and that's good.
But... there's still a problem and it is this:  what if the A1
button is huge compared to everyone else?  Say that the label
set for A1 is "A1\nA1\nA1".  The "good" relationship results
in this:

 +-----------------------------+  A fix would be to make B2's
 |                             |  fromVert be A1 and B3's
 | +-------+         +-------+ |  fromVert be A3.  Then the
 | |  A 1  |         |  B 1  | |  top's and A2-B2 and A3-B3
 | |  A 1  |         +-------+ |  are aligned.
 | |  A 1  |                   |
 | +-------+         +-------+ |  Which is a fine fix as long
 |                   |  B 2  | |  as all the A's are the same
 | +-------+         +-------+ |  width.  But say A1 is skinny
 | |  A 2  |                   |  compared to A2 / A3.  Now
 | +-------+         +-------+ |  B1 is skooted to the left,
 |                   |  B 3  | |  next to A1, while B2 / B3
 | +-------+         +-------+ |  are lined up next to A2 / A3.
 | |  A 3  |                   |  Bummahs.  You see, the original
 | +-------+                   |  problem is aligning labeled
 |                             |  buttons with icons.
 +-----------------------------+

	I guess what I'm looking for is some Row / Column
manager that will line everything up in nice tidy cells.  I'm
not sure whether or not the Athena Form widget can be convinced
to behave as such.  If anyone can point me to some example code,
or a better widget, I would appreciate it.  Thanks.

_________________________________________________________________
\ Eric Richards, Auburn University    "Money can't buy happiness.\
 \   InterNet:                         Then again, happiness can't\
\\\       richards@eng.auburn.edu      buy government insured CD's"\
 \\\ BitNet:                                                        \
  \\\     erichard@ducvax.auburn.edu         -- David Addison        \
   \\\________________________________________________________________\
    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\