[haiku-development] Re: Calling BPopUpMenu.Go() causes BView not to receive MouseMoved notifications

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 15 Jan 2009 23:53:31 +0100

Rene Gollent schrieb:
On Thu, Jan 15, 2009 at 2:58 PM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
If that is really the case, then you are either using it wrong, or
there is a bug that should be fixed.

If I recall correctly, SetMouseEventMask only applies on MouseDown and
is cleared after receiving a MouseUp. If you want a more permanent
notification SetEventMask is to be used instead. May be off on a few
details, that's going from memory.

No, that's perfectly correct. SetMouseEventMask() can only be called from inside the MouseDown() hook and is cleared on MouseUp(). SetEventMask() is what he needs.

Best regards,
-Stephan


Other related posts: