Print Page | Close Window

Sizing parent form not individual control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2101
Printed Date: 29 September 2024 at 10:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sizing parent form not individual control
Posted By: mweinberger
Subject: Sizing parent form not individual control
Date Posted: 09 April 2005 at 1:56pm
I want to add the CommandBars control to my VB6 project. In the samples that I've seen the way to deal with form sizing is to process the tbarXtreme_Resize() event, get the client area, as stated from the CommandBar control, and resize the individual controls within the client to fit within the new client area.

What I would like to do is to keep the existing client area the same, but rather resize the form to make room for the CommandBar. When I try and do that, I get an infinite callback to the Xtreme control resize event.

What's the proper method to do the resizing, such that the main form gets resized and not the individual controls?

Thanks in advance. Regards,

Martin A. Weinberger
ButterflyVista




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net