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

Home » Public Forums » archive » Re: blank window pops up after exit xmovie
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: blank window pops up after exit xmovie [message #40067 is a reply to message #40063] Fri, 09 July 2004 18:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
biophysics writes:

> I'm a newbie with widget programing. I was trying to call your xmovie
> as triggered by a widget_button in the main program. After I exit the
> xmovie there 's only the main program with a draw widget and several
> buttons left. But then if I click on the draw widget, a blank window
> pops up. Will you be able to explain what's wrong with my program?
> What should I do to avoid having this "window,0" pop-up?

XMovie!? What is this, embarrass David week? Sigh...

What's wrong with your program has nothing to do with me. :-)

You don't know where you are drawing your graphics.
When you click in your draw widget, your event handler
is issuing some kind of graphics command, but your
draw widget window isn't the current graphics window.
If it was, the graphics would go into it and not be
forced to open a window itself.

Inside the event handler, you might make the draw widget
the current graphics window by doing something like this:

Widget_Control, event.id, Get_Value=wid
WSet, wid

Where event.id is the draw widget.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: avi writing ? (xsize)
Next Topic: tooltip of draw widget acts like a eraser?!

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

Current Time: Wed Oct 08 16:52:36 PDT 2025

Total time taken to generate the page: 0.00953 seconds