Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Resize Window

Recommended Posts

Is there some special trick used in vc++ to have the controls automatically move and resize when the main dialog is resized?For example when I create a new default dialog with the resource editor, it puts and OK and Cancel button in the top right corner of the dialog. When you resize the dialog in design view they move with it so they stay in the same relative position, but when i run it, and then resize the form they stay in the same spot and the border moves farther from them.If theres a simple built in trick for it that is good, if its done through code and the resize message, then i wont really worry about it.

Share this post


Link to post
Share on other sites

You should check out 'Docking', it requires no code at all, just proper placement of controls within docked panels.Docking allows you to 'Float' controls to the Top, Bottom, Left, Right or Fill, and when used together, you could have a control float to the Top-Right of your application while it resizes...Docking is usually done by adding a panel control (or some other containment control) to your form, and then specify the Dock position in the Properties Window of VC++ for that control.I hope that helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.