10
votes

Adding VCL Styles support to a TPopupMenu in 2 lines of code.
The Road to Delphi
– The TPopupMenu component has not support for Vcl Styles directly, so if you use this control in a form with Vcl Styles enabled you will get a result like this. To fix this you have 2 ways : Write a style hook for a TPopUpMenu (The hard way) Or use the TPopupActionBar component (the easy way) In this post I will show you how use the option 2, taking advantage of two facts The TPopupActionBar component has full support for Vcl Styles Descends directly from the TPopupMenu component. So adding the Vcl.ActnPopup unit to your project and using a interposer class (before of the form declaration ...
Statistics
|
Visits by Source |
User Actions |