BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Component Resizing

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
ibidibi411@hotmail.com
Guest





PostPosted: Thu Apr 21, 2005 9:14 pm    Post subject: Component Resizing Reply with quote



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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.