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

Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

GDL
About building parametric objects with GDL.

Ampersand disappearing

Bruce
Advisor
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
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 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
Advisor
Yes, that had occurred to me...unfortunately space is at a premium in the interface.
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 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
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), 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
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Advisor
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
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 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
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), 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
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Advisor
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
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Bruce
Advisor
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
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb