MouseDown event not firing after ContextMenu closing

  • Thread starter Thread starter mind_the_gap
  • Start date Start date
M

mind_the_gap

Hi,

I have the (reproducible) problem that no MouseDown event is firing if
I close a contextmenu by clicking besides it. I have a panel in which
I do custom drawings, on some places there pops a contextmenu up and
offers some options. If one clicks not on the menu, but somewhere else
in die appliation the contextmenu closes (as expected) but the
underlying panel does not fire any MouseDown event until it gets
redrawed - strange is that MouseMove and MouseUp get still fired -
unfortunately I need MouseDown and do not want to redraw the whole
panel just because of the contextmenu closes without a click on one of
the offered options (if one clicks on the context menu the effect also
vanishes - then MouseDown is again there).

Do you have any idea what this could be?

thanks in advance,
Tom
 
I realized that the explained behaviour could be intendet. The click
outside of the context menu is just the close-the-context-menu-click
while the following clicks are going again to the underlying control.
but strange that the Move and Up events are fired on the panel.
 
I just tried this and I get the same results running on the latest version of
WM 6.1 and CF 3.5. I guess this is by-design, if not a bug. I advise to post
a message on Microsoft Connect.
 
Back
Top