Microsoft KB Archive/194915

= BUG: Toolbar ButtonMenu May Not Display Correctly =

Article ID: 194915

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q194915



SYMPTOMS
Using a ToolBar "ButtonMenu" in conjunction with setting the ToolBar's "Align" property to "3 - vbAlignLeft" or "4 - vbAlignRight" causes the drop- down portion of the button to be only partially visible.



RESOLUTION
While the majority of the drop-down portion of the button is not visible, the portion that is displayed retains the full "ButtonMenu" functionality and can be used despite the incorrect display.

If the button must be fully displayed, the "Align" property must be set to "0 - vbAlignNone," "1 - vbAlignTop," or "2 - vbAlignBottom."



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior

 * 1) Create a new Standard EXE project. Form1 is created by default.
 * 2) Choose Components from the Project menu, check "Microsoft Windows Common Controls - 6.0," and click OK.
 * 3) Add a ToolBar control to Form1.
 * 4) View the ToolBar's custom property page.
 * 5) Select the "Buttons" tab.
 * 6) Click "Insert Button."
 * 7) Change the "Style" property to "5 - tbrDropdown."
 * 8) Click "Insert ButtonMenu."
 * 9) Type "Hello" into the "Text" property and click "OK."
 * 10) View the ToolBar's standard properties.
 * 11) Change the "Align" property to "3 - vbAlignLeft."
 * 12) Run the sample application. The result is that the ToolBar appears on the left side of Form1. The actual ToolBar button can be seen; however, its drop-down arrow is only partially visible. Clicking on the ToolBar to the right of the button still activates the fully functioning drop-down menu.

Keywords: kbbug kbtoolbar kbcmnctrls kbctrl KB194915

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.