N
No One
I have a Window that I would like to "grow" on the basis of the number
and size of controls that are placed inside. The configuration is read
from an XML file and controls are built. The are the correct spacing
from the left side, but not the top of the window. So far, I can get
the client area to resize correctly and scrollbars will show up when
needed (the maximun window sizes is a setting in the XML file), but I
cannot get the window to resize correctly, especially along the right
side of the controls. There is a gutter setting for the amount of space
that is to be to the left and right side of all the controls. The left
side is fine, but the rigth side is not. I set the width of the window
to be gutter + widest control + gutter, but the window width is not
correct.
Also, how do I read the size of the menu bar at the top?
thanks.
and size of controls that are placed inside. The configuration is read
from an XML file and controls are built. The are the correct spacing
from the left side, but not the top of the window. So far, I can get
the client area to resize correctly and scrollbars will show up when
needed (the maximun window sizes is a setting in the XML file), but I
cannot get the window to resize correctly, especially along the right
side of the controls. There is a gutter setting for the amount of space
that is to be to the left and right side of all the controls. The left
side is fine, but the rigth side is not. I set the width of the window
to be gutter + widest control + gutter, but the window width is not
correct.
Also, how do I read the size of the menu bar at the top?
thanks.