10
votes
Vote UpVote

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 ...
Favorite? Off-Topic? Rodrigo @ 2012-03-06 08:42

Statistics

Visits: 982
Votes: 10
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Andreas Schachtner
Francis Ruiz
François
Ravaut123
Sergio
SimaWB
Stefan Glienke
stukelly
TOndrej
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)