If I double-click my machine to open the GUI and the param window opens up under the mouse, the GUI behaves as if I had clicked the control that appears under the mouse ie. a click from the "double-click to open" leaks into the GUI.
Is there a way to stop this from happening?
Prevent unwanted click on GUI?
Re: Prevent unwanted click on GUI?
I haven't seen this before, but maybe it's a buzz bug.
Re: Prevent unwanted click on GUI?
Try the PatchBay machine I posted. If the patch control pops up under the mouse, the pin under the mouse will get set. Don't want accidental routing changes just by opening the GUI!oskari wrote:I haven't seen this before, but maybe it's a buzz bug.
Re: Prevent unwanted click on GUI?
I think it's your MouseEnter handler. You should set a 'pressed' flag in MouseDown instead of checking MouseButtonState.Checked because the mouse button is still down when the window is created and MouseEnter fires.IXix wrote: Try the PatchBay machine I posted. If the patch control pops up under the mouse, the pin under the mouse will get set. Don't want accidental routing changes just by opening the GUI!
Re: Prevent unwanted click on GUI?
Ah that makes sense. Thanks!oskari wrote:I think it's your MouseEnter handler. You should set a 'pressed' flag in MouseDown instead of checking MouseButtonState.Checked because the mouse button is still down when the window is created and MouseEnter fires.