Andre Koppel writes
>I am using Xbae for a while and it works quite well. But I have not
>found a way to change the behaviour in such a way that the widget
>automatically changes the horizontal size to fully fit the container
>that contains the Xbae-widget. I think it would be a good Idea if there
>was a way to set a recourse of a cell to automatically change the size
>if the parent container resizes.
I'm not sure if you want to change the number of visible rows after
resizing or the height of each visible row. Either goal can currently
be achieved.
By attaching the matrix to a form widget using XmNbottomAttachment,
XmATTACH_FORM, XmNtopAttachment, XmATTACH_FORM, etc. the matrix will
resize accordingly to the new size.
To change the height of each row, you can use the resizeCallback to
detect a resize of the container widget and then calculate a new font
size based on the new height (a different font size will make the
rows larger). If you are using one of the latest versions, I believe
you may be able to set a rowHeight resource?
Hope this helps
Andrew
--
Andrew Lister Deutsche Bank, Australia Ph: +61 2 9258 2404
-> Real programmers use punched cards.