gdykes@batcomputer.tn.cornell.edu (Gene Dykes) (01/28/89)
I would like to make a suggestion about the proper behavior of geometry manager
widgets. In the two geometry manager widgets I have written, I have included
a resource, XtNresizeParticipants, which the geometry manager consults when
it needs to layout its children inside a window that is bigger than required.
XtNresizeParticipants has three possible values, which can be or'd together:
XtResizeInters, XtResizeInternals, XtResizeChildren
If the original layout looked like this :
-------------------
| ------- ------- |
| | | | |
| | | | |
| |---------------| |
| | | | |
| | | | |
| ------- ------- |
-------------------
resizing to a larger layout would yield:
XtResizeInters XtResizeInternals XtResizeChildren
----------------------- ----------------------- -----------------------
| ------- ------- | | | | --------- --------- |
| | | | | | | ------- ------- | | | | | |
| | | | | | | | | | | | | | | |
| ------- ------- | | | | | | | | | | |
| | | |---------------| | | |-------------------| |
| ------- ------- | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | ------- ------- | | | | | |
| ------- ------- | | | | --------- --------- |
----------------------- ----------------------- -----------------------
add space between add space between make children bigger
children parent and children
...and combinations would split up the extra space proportionately.
It's not that hard to implement (see contrib/widgets/tblwidget on the R3
distribution for an example) and to my mind it makes for much friendlier
parents.
Comments welcome...
--
Gene Dykes, gdykes@tcgould.tn.cornell.edu