1

How can I disable VCL Style for PopupMenu/Menu for Delphi 10.1 Berlin?

Because it's not running properly with long menus. So, I want to use windows style for menu/popup menu items.

Is this possible?

Henry
  • 2,953
  • 2
  • 21
  • 34
zgn
  • 315
  • 2
  • 11

1 Answers1

5

To disable the styling of the menus under the VCL Styles you must remove the shMenus element of the TStyleManager.SystemHooks property.

TStyleManager.SystemHooks := TStyleManager.SystemHooks - [shMenus];
RRUZ
  • 134,889
  • 20
  • 356
  • 483