Microsoft KB Archive/262654

= BUG: ShowAnnotationToolPalette of IMGEDIT Control Cannot Handle Normal ToolTip Text =

Article ID: 262654

Article Last Modified on 12/21/2004

-

APPLIES TO

 Microsoft Visual Basic 5.0 Professional Edition, when used with:  Microsoft Windows 98 Standard Edition

 Microsoft Windows Millennium Edition  Microsoft Visual Basic 6.0 Professional Edition, when used with:  Microsoft Windows 98 Standard Edition

 Microsoft Windows Millennium Edition</li></ul> </li> Microsoft Visual Basic 5.0 Enterprise Edition, when used with:  Microsoft Windows 98 Standard Edition</li></ul>

 Microsoft Windows Millennium Edition</li></ul> </li> Microsoft Visual Basic 6.0 Enterprise Edition, when used with:  Microsoft Windows 98 Standard Edition</li></ul>

 Microsoft Windows Millennium Edition</li></ul> </li> Microsoft Visual C++ 5.0 Standard Edition, when used with:  Microsoft Windows 98 Standard Edition</li></ul>

 <li>Microsoft Windows Millennium Edition</li></ul> </li> <li>Microsoft Visual C++ 6.0 Service Pack 5, when used with: <ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q262654

<div class="symptoms_section">

SYMPTOMS
The ShowAnnotationToolPalette method of the IMGEDIT control allows you to show the control's related Toolbox and assign ToolTip text to each visible button. Under the versions of Microsoft Windows to which this article applies, any ToolTip text that is longer than one character is displayed as garbage characters, including the default ToolTips.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce Behavior in Microsoft Visual Basic 6.0
<ol> <li>Start a new Visual Basic Standard EXE project. Form1 is created by default.</li> <li>On the Project menu, select the Components option to open the Components dialog box, check Kodak Image Edit Control, and then click OK.</li> <li>Add one ImgEdit control and one CommandButton control to Form1.</li> <li> Add the following code to the General Declarations section of Form1: Private Sub Command1_Click ' Show toolbox and set the ToolTip text. ImgEdit1.ShowAnnotationToolPalette True, 10, 10, &quot;a|b|c|Test&quot; End Sub </li> <li>Run the project, and then click the CommandButton.</li> <li>Move the mouse pointer over any of the first four Toolbox items and note that the first three items that have ToolTips of a single character correctly display the ToolTip text, but the fourth item, which is more than one character long, displays only garbage. Note that the predefined, default ToolTips are also garbage, even if you do not specify any new text.</li></ol>

This behavior can be reproduced easily in Microsoft Visual C++ 6.0 if you create an instance of the ImgEdit Control Class and call the ShowAnnotationToolPalette method while you pass similar arguments.

Keywords: kbbug kbnofix kbnoupdate kb3rdparty KB262654

-

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

© Microsoft Corporation. All rights reserved.