GDL
About building parametric objects with GDL.

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
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 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
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 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 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
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 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
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
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 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 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
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 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
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
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 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
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb