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

Home » Public Forums » archive » Re: Another VM conundrum
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Another VM conundrum [message #37286 is a reply to message #37283] Fri, 12 December 2003 06:18 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
JD Smith wrote:
> On Thu, 11 Dec 2003 12:46:11 -0700, David Fanning wrote:
>
>
SNIP

> I'm thinking I can probably get away
> with:
>
> device,DECOMPOSED=0,RETAIN=2
>
> which will always run since you need IDL>=6.0 to run the VM. What I worry
> about is how this will interact with various other systems (like Windows,
> Solaris, or MacOSX). Can anyone offer any feedback as to whether this
> call succeeds in doing what I asked without creating other problems?
>

Hello,

I tested the routine appended below as a VM on MacOSX X11. It seems to
work fine when other windows cover/uncover and the window is
minimized/restored.

I noticed that the terminal session I used changed from tcsh to idl and
the the x11 terminal shows two windows: an xTerm (which I have to have
up and ruu=ning but don't use for the idl command prompt) and viola!
Test_VM. So, unlike Windows, you can track down the the widget even
when it's hiding.

I wonder if you might have in mind a different kind of test - something
we code build as VM-ware and test out. I'd be happy to give it a whirl
if needed.

Is this potential weakness/problem limited to direct graphics?

Ben



;;;;;;BEGIN CODE
PRO Test_VM

device,DECOMPOSED=0,RETAIN=2

file = FILEPATH('rose.jpg', SUBDIRECTORY=['examples','data'])

trueImage = read_image(file)
dim = SIZE(trueImage,/Dim)
byteImage = bytscl(hanning(50,50))

Base = Widget_Base(title = 'Test_VM')
Draw = Widget_Draw(base, xsize = dim[1], ysize = dim[2])

Widget_Control, base, /realize
Widget_Control, draw, get_value = drawID
Wset, drawID
TV, trueImage, true = 1
TV, byteImage

XMANAGER, 'test_vm', base
END

;;;;;;END CODE
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLgrPolygon semi opaque / transperent polygons
Next Topic: Re: IDLgrPolygon semi opaque / transperent polygons

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

Current Time: Sat Oct 11 07:41:35 PDT 2025

Total time taken to generate the page: 2.07983 seconds