I need a form for testing Styles. And go apllying each style only in that form. But the TStyleManager.SetStyle applies to all forms in application. How can I do for apply style only in current form?
procedure TForm1.FormCreate(Sender: TObject);
var styleName: String;
begin
ListBox1.Items.Clear;
for styleName in TStyleManager.StyleNames do
ListBox1.Items.Add(styleName);
end;
.......
procedure TForm1.ListBox1Click(Sender: TObject);
begin // this applies to all forms in application, I want apply only this form!
TStyleManager.SetStyle(ListBox1.Items[ListBox1.ItemIndex]);
end;