开发者

Ampersands in AIR system tray tooltip

开发者 https://www.devze.com 2023-01-07 16:06 出处:网络
I have an AIR app that I have developed for a client. It has a system tray icon with the company name, app name etc, displayed in a tooltip.

I have an AIR app that I have developed for a client.

It has a system tray icon with the company name, app name etc, displayed in a tooltip.

This all works very simply except that the client in question ha开发者_开发知识库s a & in their name.

No matter how I encode this, it never seems to get displayed.

Anyone come across this before, or have any workarounds?


If & doesn't works, then you could try &&. – splash

This is the right answer! I'm using this for a ContextMenuItem in Flex 4.5.1. At first I've tried escaping the ampersand with '&', but that doesn't work here.

Best regards,

Christian


If you're directly assigning the tooltip a string of characters sometimes creating a string variable that contains the text you want and assigning that variable to the tooltip will work. I've used this before under various circumstances, but never for a system tray tooltip.


For me - &&& works.

0

精彩评论

暂无评论...
验证码 换一张
取 消