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

Home » Public Forums » archive » 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
CW_DEFROI (some help for dumb person doing first widget prog...) [message #44749] Fri, 15 July 2005 09:05 Go to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
I realise the ultimate solution is get a book and learn to do it
properly, but for now I crave a little indulgence to help me get
something up and running ASAP by the good ol' "cut and paste examples
method"...

I've used the GUI builder to set up a basic Draw widget and menu setup.
The program reads in the .bmp files it's required to get, after which
I need an ROI to be drawn in the image. CW_DEFROI looks like the
badger, and I add /BUTTON and /MOTION keywords to the Widget_Draw call
in the original .pro file

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?

Thanks, 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
Read Message
Previous Topic: Re: programming course
Next Topic: Finding coordinates on the circumference of a circle

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

Current Time: Tue Oct 28 22:09:41 PDT 2025

Total time taken to generate the page: 0.79733 seconds