Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Multiple dr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 5697 of 5741
Post > Topic >>

Re: Multiple draw widget events

by "ben.bighair" <ben.bighair@[EMAIL PROTECTED] > May 2, 2008 at 06:54 AM

On May 2, 1:49 am, Jye <jye.sm...@[EMAIL PROTECTED]
> wrote:
> Hi,
>
> Another newbie here so the answer to my problem is most likely
> blatently obvious.
>
> The example below is of a draw widget which windows the displayed
> image when right clicked on the draw widget and the ROI button runs
> CW_DEFROI. But my problem is that the windowing events interfere when
> CW_DEFROI is called! How can I stop this from happening? Im sure it
> has something to do with the /no_block keyword but I have been unable
> to find the solution.
>
> Any help is greatly appreciated.
>
> Cheers
> Jye

Hi,

I am not sure what you are saying is the interference, but I'll guess
that it is the grayscale shifting with the motion events.  You are
explicitly turning motion events on in your ROI_EVENT handler.
Removing that line (or setting DRAW_MOTION_EVENTS = 0) will prevent
motion events from occurring.

Cheers,
Ben


>
>
;--------------------------------------------------------------------------------------------
> ;                               ROI
>
;--------------------------------------------------------------------------------------------
>
> PRO ROI_event, event
> widget_control, event.top, get_uvalue=info
>
> Widget_Control, info.draw, Draw_Motion_Events=1
>
> xsize=(size(info.image))[1]
> ysize=(size(info.image))[2]
>
> Result = CW_DEFROI(info.draw, IMAGE_SIZE=[xsize,ysize])
>
> END
>




 5 Posts in Topic:
Multiple draw widget events
Jye <jye.smith@[EMAIL   2008-05-01 22:49:53 
Re: Multiple draw widget events
"ben.bighair" &  2008-05-02 06:54:09 
Re: Multiple draw widget events
David Fanning <news@[E  2008-05-02 08:21:43 
Re: Multiple draw widget events
David Fanning <news@[E  2008-05-02 09:09:33 
Re: Multiple draw widget events
Jye <jye.smith@[EMAIL   2008-05-05 18:07:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 6:17:53 CDT 2008.