DelphiFAQ Home Search:
General :: Windows :: Programming :: Windows with Delphi :: Windows Forms
Code snippets, Q+A around the Windows user interface. From a Delphi perspective, but usually applicable to other languages.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

This is the FULL list of all articles in this category.

Featured Article

KeyPreview for mouse in popup menus

Question:

I need to detect a right mouse press on a popup menu item. There is no OnMouseDown event handler for popupmenu items so I want to grab the mouse event in the same manner as a form KeyPreview. How can I do that?

Answer:

This is not easily possible. The problem with Windows menus is that they use their own message
queue.