BUG: 3-D Panel Control Doesn't Resize to Key Status Control

Last reviewed: June 21, 1995
Article ID: Q81449
The information in this article applies to:

- Professional Edition of Microsoft Visual Basic for Windows,

  versions 2.0 and 3.0
- Microsoft Professional Toolkit for Microsoft Visual Basic programming
  system for Windows, version 1.0

SYMPTOMS

Unpredictable results occur if a 3-D Panel custom control's AutoSize property is set to 3 (AutoSize Child To Panel) and you place a Key Status control with its AutoResize set to True on the 3-D Panel as a child control. For example, the Key Status control keep may keep its default size and move to the upper left corner of the panel, and the Key Status control's top and left sizing handles may flash.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

If a single control is placed on a 3-D Panel custom control with AutoSize = 3 (AutoSize Child To Panel), the child control resizes to exactly fit within the panel's inner bevel. This setting for the AutoSize property has no effect if there are no child controls, more than one control, or if the panel has no bevels. If the child control has a fixed dimension (for example, the height of a combo box or a drive box), then that dimension of the panel will be adjusted to fit the child control instead while the other dimensions are resized to fit the panel.

The Key Status custom control has its AutoSize property default set to True, so its dimensions cannot be changed. However, 3-D Panel does not resize to the size of the Key Status control. Instead, when you draw a Key Status control onto a 3-D Panel with AutoSize = 3 and release the mouse button, the Key Status control keeps its default size and moves to the upper left corner of the panel, and the Key Status control's top and left sizing handles will flash. Also, the sizing handles of the Key Status control that you initially draw remain on the panel. Notice that the size of the control in the right box on the Properties bar will alternate between the size of the 3-D Panel and the size of the Key Status control.

Steps to Reproduce Problem

  1. Start Visual Basic or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default.

  2. From the File menu, choose Add File. In the Files box, select the THREED.VBX custom control file. The 3-D Panel tool will appear in the toolbox.

  3. Place a 3-D Panel control (Panel3D1) on Form1.

  4. Set its AutoSize property to 3 (AutoSize Child To Panel).

  5. Draw a Key Status control on the panel.


Additional reference words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00
3.00
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.