I want to modernize an old VCL application based on a design template. That design template contains different button styles. Let's say there are three types of buttons: LightButton
, DarkButton
and GreenButton
.
Since more than 50% of all buttons will appear as DarkButton
I modified the appearance of TButton
to the dark design using the Bitmap Style Designer.
Now I want to add the other button styles to the .vsf
file and use it in my application. What is the best way to do it?
Do I need to create new button classes and new descendants of TStyleHook
which paint entirely new buttons? If yes, is there a way to reuse as much code as possbile from Vcl.StdCtrls.TButtonStyleHook
?
Are there any other approaches, best practices or examples?