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

Home » Public Forums » archive » Re: CW_DEFROI (some help for dumb person doing first widget prog...)
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: CW_DEFROI (some help for dumb person doing first widget prog...) [message #44748] Fri, 15 July 2005 23:30 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Peter Clinch writes:

> Next up, in my event handler for the menu option that will activate the
> ROI selection, I start with
>
> wDraw=widget_info(event.top, find_by_uname="Draw")
>
> CentreROI=CW_DEFROI(wDraw)
>
> that creates the relevant ROI widget, and the cursor position is updated
> when the mouse is over the image, but it doesn't appear to draw anything
> on the image. Can anyone one tell me exactly how I'm being Dumb here?

You passed CW_DEFROI the draw widget identifier. It needs
the graphics window index number, which is the *VALUE*
of the draw widget (after it has been realized).

wDraw=widget_info(event.top, find_by_uname="Draw")
Widget_Control, wDraw, Get_Value=windex
WSet, windex
CentreROI=CW_DEFROI(windex)

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
Read Message
Previous Topic: programming course
Next Topic: Data acquisition with IDL...

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

Current Time: Wed Dec 03 06:27:58 PST 2025

Total time taken to generate the page: 2.32416 seconds