DOCUMENT:Q193695 06-OCT-1998 [vbwin] TITLE :BUG: Right-Aligned Button Text Not Visible in Vertical Toolbar PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0,6.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0 --------------------------------------------------------------------- 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. MORE INFORMATION ================ 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. 4. Place a Toolbar on the form. 5. In the properties window, set the Toolbar Align property to 3- vbAlignLeft. 6. 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." 7. Click the General tab and set the TextAlignment property to 1- tbrTextAlignRight. 8. Run the project, and note that the text on the buttons will not be visible. Additional query words: kbDSupport kbDSD kbVBp kbVBp600bug kbVBp500bug kbToolbar ====================================================================== Version : WINDOWS:5.0,6.0 Platform : WINDOWS Issue type : kbbug ============================================================================= 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. Copyright Microsoft Corporation 1998.