MouseDown event not firing after ContextMenu closing

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
 
M

mind_the_gap

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.
 
S

Simon Hart [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top