cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Ampersand disappearing

Bruce
Expert
How do I stop the ampersand (&) symbol from disappearing in UI_TOOLTIP text? It appears fine in a UI_OUTFIELD, but not in UI_TOOLTIP.
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
13 REPLIES 13

Podolsky
Ace
Maybe use 'and' instead?

Bruce
Expert
Yes, that had occurred to me...unfortunately space is at a premium in the interface.
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Barry Kelly
Moderator
Bruce wrote:
Yes, that had occurred to me...unfortunately space is at a premium in the interface.
Tooltips extend beyond the interface window so size should not be an issue - except there is a character limit.
Go past that, there is no warning and the entire interface will just not show.
169 characters by my count.

Other characters show, just not '&' which is interesting.


Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Barry Kelly
Moderator
There is a warning if you check script (although the reported line number is wrong).
And is seems the character limit is for the entire script line - not just the tooltip.


Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Bruce
Expert
I see I must provide a bit more context:

I am using a variable that will change between "Primary" and "Primary & Secondary" depending on what the user has selected. This text will appear as a UI_INFIELD column heading, and also as a UI_TOOLTIP. It is the column heading that I don't have space for - hence the use of "&".
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Barry Kelly
Moderator
Unfortunately '&' will just not show in the tooltip.
Can you have it say "Primary / Primary and Secondary" or "Primary or Primary and Secondary" in the tooltip instead?
The actual interface can still show the exact text you want.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Barry Kelly
Moderator
But wait!
Something just came to the back of my mind.

You can do it if you use a triple &&&.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Bruce
Expert
Thanks Barry. I know in other languages (e.g. VBA) you can double-up the ampersand to make it appear...but apparently not in GDL.

No problem - I'll work my may around that.

Cheers
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Bruce
Expert
I replied too soon: so triple it is. Will still not quite work the way I want (for both tooltip & outfield), but that's ok. I'll figure something out
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!