widget, draw and file pickup [message #60754] |
Thu, 05 June 2008 10:35 |
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
|
|
|