comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problem with text()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problem with text() [message #84601] Fri, 19 June 2015 01:51 Go to previous message
Helder Marchetto is currently offline  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..
[Message index]
 
Read Message
Read Message
Previous Topic: Inconsistency in the position of the text() function
Next Topic: remote execution of idl script

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 13:10:35 PDT 2025

Total time taken to generate the page: 1.99572 seconds