Home › Forums › Problems and solutions in GDL › Documentation elements, text handling › Reposition-able text › Reply To: Reposition-able text
December 14, 2016 at 03:57
#2922
Participant
You are using just a single hotspot.
You need a moveable or stretchy hotspot.
In fact you need 2 – one to move horizontally and the other vertically.
Something like this…
unID = 1000
!!!!!!!!!!!! x-axis stretchable
HOTSPOT2 0, textOffset_y, unID, textOffset_x, 1+256
unID=unID+1
HOTSPOT2 -0.001, textOffset_y, unID, textOffset_x, 3+128
unID=unID+1
HOTSPOT2 textOffset_x, textOffset_y, unID, textOffset_x, 2
unID=unID+1
!!!!!!!!!!!! y-axis stretchable
HOTSPOT2 textOffset_x, 0, unID, textOffset_y, 1+256
unID=unID+1
HOTSPOT2 textOffset_x, -0.001, unID, textOffset_y, 3+128
unID=unID+1
HOTSPOT2 textOffset_x, textOffset_y, unID, textOffset_y, 2
unID=unID+1
!!!!!!!!!!the text
TEXT2 textOffset_x,textOffset_y,txtParam
The initial UNID can be set to whatever value you want.
The trick is hotspots should always have different values so if you repeat the hotspots again reset with a new UNID
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