BUG: wxTaskBarIcon, Tooltip

Vadim Zeitlin vadim at wxwidgets.org
Fri Sep 21 10:43:21 PDT 2007


On Fri, 21 Sep 2007 18:39:25 +0200 Torsten Mohr <tmohr at s.netic.de> wrote:

TM> >  Well, is it more than 256 or less?
TM> > 
TM> >  Also, can you see the problem in the taskbar sample?
...
TM> i tried to give as many information for the beginning as i could.

 No, sorry. The very first thing you should test when you report a problem
is whether it can be reproduced in a corresponding sample. It really takes
5 minutes to try it out.

TM> But by changing the sample application i see that 64 characters
TM> are shown
...
TM> I use compiled wxWidgets as Release and as Unicode.  Could it
TM> be that a buffer of 256 "char" is available for the tooltip
TM> and a Unicode character takes 4 bytes?

 Yes, exactly. The Windows NOTIFYICONDATA struct used to declare szTip of
size 64 only. The recent versions of Windows headers extend it to 128
characters though, so it looks like there is a bug in our code: we should
predefine _WIN32_IE to a higher value before including shellapi.h. Fixed
now.

 Finally, one other thing we could in principle do would be to use "balloon
tool tips" instead of the standard ones. They're supported on Windows 2000
and later and can have 255 characters (and also can have a separate title
and an icon). But they aren't used for the same thing and don't appear on
their own unlike the popup tooltips AFAICS. So I'm not sure if it would be
a good idea.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list