Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » & won't appear in toolTipText
& won't appear in toolTipText [message #440441] Fri, 30 July 2004 15:21 Go to next message
Greg Roberts is currently offline Greg RobertsFriend
Messages: 88
Registered: July 2009
Member
I want to use an ampersand in a title on my SWT widgets - to do this I
needed to escape the & with another & - so anywhere I want one I put && in
the title.

This works fine - on Windows anyhow...

But I am not able to get & to show in a toolTip. If I create the title
with && and set the text it works, but when I set the toolTipText no &
appears. Is there another way to get an & to appear in toolTipText?

Also, is there another way besides && to get an & to appear in a widgets
display test on Linux?

Any help would be greatly appreciated.

Thank you,

Greg
Re: & won't appear in toolTipText [message #440526 is a reply to message #440441] Tue, 03 August 2004 22:42 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Doubling the & should work on every platform. Enter a problem report if it
does not.

"Greg" <gwrobert@us.ibm.com> wrote in message
news:cedp1q$gm7$1@eclipse.org...
> I want to use an ampersand in a title on my SWT widgets - to do this I
> needed to escape the & with another & - so anywhere I want one I put && in
> the title.
>
> This works fine - on Windows anyhow...
>
> But I am not able to get & to show in a toolTip. If I create the title
> with && and set the text it works, but when I set the toolTipText no &
> appears. Is there another way to get an & to appear in toolTipText?
>
> Also, is there another way besides && to get an & to appear in a widgets
> display test on Linux?
>
> Any help would be greatly appreciated.
>
> Thank you,
>
> Greg
>
Previous Topic:Move cursor
Next Topic:menubar listener
Goto Forum:
  


Current Time: Sat Apr 27 01:37:47 GMT 2024

Powered by FUDForum. Page generated in 0.03485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top