Microsoft KB Archive/193695

= BUG: Right-Aligned Button Text Not Visible in Vertical Toolbar =

Article ID: 193695

Article Last Modified on 5/13/2003

-

APPLIES TO


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

-



This article was previously published under Q193695



SYMPTOMS
The caption text of buttons on a vertically-aligned toolbar will not be visible if the button text is right-aligned.



RESOLUTION
This will work correctly if you have the text aligned to the bottom, or the toolbar aligned top or bottom with the text aligned right.



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 Visual Basic Standard EXE project. Form1 is created by default.
 * 2) Select Components from the Project menu, check "Microsoft Windows Common Controls," and then click OK.
 * 3) Place a Toolbar on the form.
 * 4) In the properties window, set the Toolbar Align property to 3- vbAlignLeft.
 * 5) Right-click the Toolbar and select Properties to bring up the Toolbar's property sheets. Click the Button tab and insert two buttons in the toolbar with the Captions "One" and "Two."
 * 6) Click the General tab and set the TextAlignment property to 1- tbrTextAlignRight.
 * 7) Run the project, and note that the text on the buttons will not be visible.

Additional query words: kbDSupport kbDSD kbVBp kbVBp600bug kbVBp500bug kbToolbar

Keywords: kbbug KB193695

-

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

© Microsoft Corporation. All rights reserved.