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 #44842 is a reply to message #44748] Mon, 18 July 2005 03:38 Go to previous messageGo to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
David Fanning wrote:

> 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)

Oh, hang on... if I do that it crashes on the cw_defroi call

The crashpoint cursor is in the cw_defroi.pro file, at the line

WIDGET_CONTROL, draw, GET_VALUE=win

result is I'm even more confused than I was before... :-(

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[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:54:03 PST 2025

Total time taken to generate the page: 1.52287 seconds