FIX: Button Sizing Inconsistent Between Form Designer and Run-TimeID: Q223352
|
When using the Visual J++ 6.0 Form Designer, the size of the Windows Foundation Classes (WFC) components may not be consistant between design-time and run-time when the font sizes of the development machine and the target/deployment machine are different.
Under certain circumstances, such as creating a child window in the constructor of the parent window, the autoscaling feature of the Form Designer does not work.
To work around this problem, only create child windows for a Multiple Document Interface (MDI) application after the parent window has been created. Avoid using fixed-size components, such as bitmaps, when auto-scaling features are desired.
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
This problem might be seen when an MDI application is developed on a machine with a large font setting, and is then deployed or run on a machine with a small font setting, or vice versa. This problem might also be seen when using fixed-size components and auto-scaling at the same time.
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
Additional query words:
Keywords : kbservicepack kbCmnCtrls kbCtrlCreate kbide kbVJ600fix kbWFC kbGrpJava kbVS600sp2 kbVS600sp2fix kbVS600SP1 kbVS600sp3fix kbVS600SP1fix
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 19, 1999