Ampersand handling in Tooltips

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Ampersand handling in Tooltips

by jiri » Sun Oct 12, 2003 5:17 am

Actually MediaMonkey already does replacement of a single '&' by double ampersand ('&&'), because this problem has been already spotted. However, it's even more complicated - as I have tested now, in Win 98 ampersands have to be doubled, but in XPs they have to be trippled! It probably depends on ComCtl32.dll installed. It looks like that the best solution would be to replace '&' by 'and' for this purpose.

Jiri

but

by Lowlander » Sat Oct 11, 2003 6:59 pm

But this would show one underlined & no, if you use &&?

Ampersand handling in Tooltips

by Guest » Sat Oct 11, 2003 6:53 pm

When you hover your mouse over the MM icon in the system tray while a song is playing a tooltip pops up displaying information about the song. 8)

If you have an artist name such as "Artist1 & Artist2" the tooltip will display as "Artist1 _Artist2". This behaviour is a result of using standard Microsoft tooltips and menu components where you use the & symbol to underline the next character to indicate the hot letter in a menu.

Please do some filtering before sending the string to the tooltip to prevent this from happening. I think you need to replace & with && to force the ampresand to display.

Top