How can I use the built-in progress panel when enabling vcl styles?

I need to use the progress bar with pbstMarquee style, I read this question and the accepted answer works fine, but now I need to draw my own progress bar

enter image description here

How can I use the built-in progress bar when vcl styles are enabled?

+3
source share
2 answers

Just assign the TStyleHookdefault style binding to TProgressBar, and this way the progress bar will draw using the look of Windows.

 TStyleManager.Engine.RegisterStyleHook(TProgressBar, TStyleHook);

enter image description here

+12
source

Delphi: Form1.ProgressBar1.StyleElements := [seClient, seBorder, seFont];

C ++: Form1->ProgressBar1->StyleElements = TStyleElements();

0
source

All Articles