-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong message in TSysPopupStyleHook.WndProc #217
Comments
Can you post your fix to check it? |
I created a PR, because I can confirm that it fixes the problem for me. |
A vote for ricobautsch fix. |
Unfortunately this fix messes up menus, when there are too many items to fit in the screen and scrolling is enabled. During scrolling ugly visual artifacts appear. |
I'm suggesting this patch:
basically, it separates functionality so that MN_BUTTONDOWN does scrolling and MN_BUTTONDOWN_UP does menu item clicking. |
In TSysPopupStyleHook.WndProc the message MN_BUTTONDOWN is used.
This will close the PopupMenu by clicking down the mouse button, and afterwards the control under the mouse cursor gets the MouseUp event, which will result in different crazy behaviors.
I fixed my issue locally by using the MN_BUTTONDOWN_UP instead of MN_BUTTONDOWN.
I noticed, that windows itself always triggers the menu action, when user leaves the mouse button.
The text was updated successfully, but these errors were encountered: