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

Home » Public Forums » archive » widget, draw and file pickup
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
widget, draw and file pickup [message #60754] Thu, 05 June 2008 10:35
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Hi all,

I have a little GUI that contains a draw widget and a button to pick up
a file to open (and a few other things that we don't care about).

On the draw widget, there are a /MOTION_EVENTS and a /BUTTON_EVENTS.
When I open the dialog_pickfile, if I double click on my file and that
the dialog_pickfile box is on top of the draw widget, then the file is
properly selected AND a click event is generated... which is annoying.

Is there any Jedi trick that I can do to avoid this?
... I can't really use a "first click on the draw widget is dismissed"
as if the user use the "open" button on the dialog pickfile box, or if
the dialog is not on top of the draw widget, the event is not happening.

I have tried to set !MOUSE.BUTTON = 0 after opening my file, alas in
the event handler, I use IF event.release EQ 1 THEN bla bla bla, which
is different.

Also, the event when I click on the button of my GUI to open the file is
clearly a different one than the click on the draw widget...

Any help would be appreciated!
Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with brainless Windows IDL7
Next Topic: Re: restore all but ! variables

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

Current Time: Wed Oct 08 15:21:18 PDT 2025

Total time taken to generate the page: 0.00464 seconds