Ampersand handling in Tooltips

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

Guest

Ampersand handling in Tooltips

Post by Guest »

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.
Lowlander
Posts: 58322
Joined: Sat Sep 06, 2003 5:53 pm

but

Post by Lowlander »

But this would show one underlined & no, if you use &&?
jiri
Posts: 5426
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

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
Post Reply