Re: Multiple click region growing [message #63161] |
Tue, 28 October 2008 17:24  |
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 #63302 is a reply to message #63161] |
Mon, 03 November 2008 15:31  |
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
|
|
|