make_rt change viewplane behaviour [message #90109] |
Wed, 28 January 2015 04:43  |
LNpellen
Messages: 37 Registered: November 2009
|
Member |
|
|
I have made an executable of my application by using make_rt.
I'm currently stuck with v 7.1 - sorry for asking questions that might be biased by such an old version, but I think I have had similar problems with newer version at my previous employer too.
In the Application I am opening images and by default the viewplane is set equal to the image size.
imgSz=SIZE(activeImg, /DIMENSIONS)
viewpl=[0. ,0. , imgSz[0:1] ]
oView=OBJ_NEW('IDLgrView', VIEWPLANE_RECT =viewpl
I also have a label showing the cursor position. DrawXY is the size of the (quadratic) WIDGET_DRAW.
xx=ev.X*imgSz(0)/drawXY
yy = ev.Y*imgSz(1)/drawXY
When I run this application in "debug mode" in the IDL Workbench on an XP machine (Remote) the cursor value (xx,yy) displays 510,510.
When I run the make_rt executable version (not remote) on an Win 7 machine the same image is open, but the image is all black, probably because it is only showing a part of the image up to 64,64 pixels as this is what the cursor display tells me. Also the position of the annotations on the image is stretched.
So what is happening with the viewplane between the workbench and the make_rt executable?
Any ideas? Will it automagically be fixed when I hopefulle proceed to version 8.x?
Best regards
Ellen
|
|
|