3
votes

I need use a progress bar with the pbstMarquee style, I read this question and the accepted answer works fine, but now i need draw the native progress bar

enter image description here

How i can use the native progressbar when the vcl styles are enabled?

2

2 Answers

12
votes

Just assign the default vcl style hook TStyleHook to the TProgressBar component and in that way the progress bar will be draw with the Windows look and feel.

 TStyleManager.Engine.RegisterStyleHook(TProgressBar, TStyleHook);

enter image description here

1
votes

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

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