LCL: TWinControl analyses cached copy of PopupMenu instead of property with virtual get method GetPopupMenu
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
TWinConctrol exposes virtual method GetPopupMenu (getter for PopupMenu property)
which allows developer make some modifications or updates in menu or even return the different menu.
TWinControl shortcut analysis code does not use GetPopupMenu result but instead a cached copy of menu pointer.
Current behaviour lead to impossibility of modification of menu shortcuts in runtime. New shortcuts simply won't work.
Trivial patch provided.