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

Home » Public Forums » archive » Re: Widget_Draw - Help
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: Widget_Draw - Help [message #27338 is a reply to message #27337] Thu, 18 October 2001 14:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Logan Lindquist (llindqusit@mrdoc.cc) writes:

> I figured I would start with something easy, trying to create widget
> that displays images in Widget_Draw. I am trying to pass the wdraw
> variable in a Struct to the button procedure event handler. The
> event handler then calls a procedure that will hopefully open the
> file, resize the image and display in the wdraw window. Right now
> I am getting an error saying that my wdraw variable is undefined.
> Some hints to what I am doing wrong, would be greatly appreciated!

Well, let's see. Where to begin? :-)

I guess your basic problem is that you created
an object graphics draw widget:

> wdraw = Widget_Draw(wbase_col, XSize=256, YSize=256,$
> Graphics_Level=2, Expose_Events=1, Retain=0, $
> Event_Func ='image_expose')

and I think you wanted to create a direct graphics draw
widget. You will want to leave out the Graphics_Level
keyword.

The value of a direct graphics draw widget is the
draw widget's window index number. The value of
an object graphics draw widget is a window object.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any cross-platform IDL alternatives?
Next Topic: Re: Performance of a loop

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

Current Time: Sat Oct 11 21:09:56 PDT 2025

Total time taken to generate the page: 1.03520 seconds