質問

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?

役に立ちましたか?

解決

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

他のヒント

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

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top