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



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0
  • Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows

This article was previously published under Q81449

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.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:kbbug KB81449