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

Home » Public Forums » archive » Re: Multiple click region growing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Multiple click region growing [message #63161] Tue, 28 October 2008 17:24 Go to next message
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
I have done something similar by putting a while loop around the bulk
of the processing.

e.g.,

while(!mouse.button ne 4) do begin
cursor, xp, yp
; other assorted processing
endwhile


You can now click forever, or until you press the right mouse button.
Whichever you prefer.

You now need to get a bit clever about handling the multiple clicks.

Enjoy.
Re: Multiple click region growing [message #63263 is a reply to message #63161] Wed, 29 October 2008 12:02 Go to previous messageGo to next message
frankosuna is currently offline  frankosuna
Messages: 31
Registered: February 2008
Member
Thank you very much! This should help out!
Re: Multiple click region growing [message #63302 is a reply to message #63161] Mon, 03 November 2008 15:31 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
RussellGrew wrote:
> I have done something similar by putting a while loop around the bulk
> of the processing.
>
> e.g.,
>
> while(!mouse.button ne 4) do begin
> cursor, xp, yp
> ; other assorted processing
> endwhile
>
>
> You can now click forever, or until you press the right mouse button.
> Whichever you prefer.
>
> You now need to get a bit clever about handling the multiple clicks.
>
> Enjoy.

Another option would be to put the image in a widget, and to have a
mouse click event handler that modifies the image, re-displays it and
save it... the only advantage is that you do not have to do a
right-click to stop. The disadvantage is that you have to manually close
the window....

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Threads in IDL 7.0
Next Topic: error: subscript range values of the form low:high must be >= 0, < size

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

Current Time: Sat Oct 11 14:30:23 PDT 2025

Total time taken to generate the page: 0.32013 seconds