View Issue Details

IDProjectCategoryView StatusLast Update
0004976JEDI VCL00 JVCL Componentspublic2011-06-10 16:09
ReporterNazgulAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.37 
Target VersionFixed in Version3.40 
Summary0004976: TJvBalloonHint painting problem on Windows Vista
DescriptionI am using a TJvBalloonHint. The message is overlapping the close button (see attached picture). This happens on Windows Vista. As far as I know, it is painted correctly on Windows XP.
Additional InformationThe message contains some unicode characters. They are displayed correctly.
TagsNo tags attached.

Activities

2009-10-12 15:39

 

TJvBallonHint-bug.png (5,789 bytes)
TJvBallonHint-bug.png (5,789 bytes)

jkelley

2009-11-05 19:08

reporter   ~0016858

I'm getting the same problem on a Windows XP system with themes enabled. The problem is apparently that TJvBalloonHint only takes into account the width of the header, not the width of the text, when placing its close button. The attached patch seems to fix it.

2009-11-05 19:08

 

0004976.patch (409 bytes)
Index: JvBalloonHint.pas
===================================================================
--- JvBalloonHint.pas	(revision 2755)
+++ JvBalloonHint.pas	(working copy)
@@ -855,6 +855,7 @@
     FCloseBtnRect := Rect(0, 0, ASize.cx, ASize.cy);
 
     Inc(FHeaderRect.Right, ASize.cx);
+    Inc(FMsgRect.Right, ASize.cx);
   end;
 
   if IsWinVista_UP and (GetComCtlVersion >= ComCtlVersionIE6) then
0004976.patch (409 bytes)

Nazgul

2009-11-06 16:05

reporter   ~0016860

I have applied jkelley's patch to my 3.38 and it seems to have fixed the problem.

Thanks, jkelley.

AHUser

2009-11-06 16:58

developer   ~0016861

Fixed in SVN. (It didn't make it into the 3.39 release)

Issue History

Date Modified Username Field Change
2009-10-12 15:39 Nazgul New Issue
2009-10-12 15:39 Nazgul File Added: TJvBallonHint-bug.png
2009-11-05 19:08 jkelley Note Added: 0016858
2009-11-05 19:08 jkelley File Added: 0004976.patch
2009-11-06 16:05 Nazgul Note Added: 0016860
2009-11-06 16:58 AHUser Note Added: 0016861
2009-11-06 16:58 AHUser Status new => resolved
2009-11-06 16:58 AHUser Fixed in Version => Daily / SVN
2009-11-06 16:58 AHUser Resolution open => fixed
2009-11-06 16:58 AHUser Assigned To => AHUser
2011-06-10 16:09 obones Fixed in Version Daily / SVN => 3.40