ibidibi411@hotmail.com Guest
|
Posted: Thu Apr 21, 2005 9:14 pm Post subject: Component Resizing |
|
|
I have several frames that I have installed in a component package.
The frames are working fine in every way, except one: I can't get the
frame dimensions to retain a fixed size at design time.
For example, one frame has a label, an edit box under the label and a
button next to the edit box. When I drop the frame on a form it
insists on having a height that is about 10 pixels too much. I have
tried handling the FrameCanResize event and setting the Y to the
appropriate value. I've overridden the AdjustClientRect method and I'm
responding to the WM_SIZE message. All of these things call the same
function to set or reset the dimensions for the frame to some simple,
hardcoded values, however, the frame always seems to be the same size,
which is never the hardcoded size. (Normally I wouldn't hardcode the
values, but I'm getting desperate!)
I can't imagine what more I could do to try to force the size, so I'm
hoping someone has some ideas...
Thanks!
Ben
|
|