Problem with text() [message #84601] |
Fri, 19 June 2015 01:51  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
Hi,
I've been fighting with this for ~2 hours and I don't know where to bang my head against.
I have a complicated object and I start apologizing for posting such complicated lines, but I see no other way and don't want to leave out anything. So I have the following lines using the text() function and setting the position with the self.position property. I print out the self.position value before and then the position parameter of the text object after:
print, 'pos before = '+string(self.position, format='("(",f0.2,",",f0.2,")")')
self.overlay = text(self.position[0], self.position[1], self.txtValue, /norm, target=self.refObj.widgets.oWin)
print, 'pos after = '+string(self.overlay.position, format='("(",f0.2,",",f0.2,",",f0.2,",",f0.2,")")')
This runs 4 times and I get the following print out:
pos before = (0.08,0.95)
pos after = (0.40,0.40,0.53,0.42)
pos before = (0.92,0.95)
pos after = (0.40,0.39,0.71,0.42)
pos before = (0.08,0.04)
pos after = (0.40,0.40,0.84,0.42)
pos before = (0.92,0.04)
pos after = (0.40,0.40,0.57,0.42)
Something stupid is happening and I can't figure out what I'm doing wrong..
|
|
|