Home › Forums › Problems and solutions in GDL › Documentation elements, text handling › Reposition-able text › Reply To: Reposition-able text
Without actually writing the code all you need to do is create the script for the moveable (stretchy) hotspot – you can ad a rotating hotspot too if you want.
Then use an ADD2 command (and ROT2 command if desired) using the hotspot parameters.
Then TEXT2 0,0,”text” and the text will move with the hotspots.
If you are not worried about moving the text differently for different scales and/or rotating then you can skip the ADD2 and ROT2 and use the hotspot parameters directly in the TEXT2 command.
If you need an actual coded example let me know.
Barry.
Versions 6.5 to 22
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit