I have a problem about VCL Styles in Delphi IDE. When I change VCL Style From default style to another style in delphi IDE and run program an "Style 'Style Name' not found" error comes up. I trying to find a option in IDE to fix Style directory, but I can't find any options. Please, help me to solve this problem and fixing IDE Options. thanx a lot.
2
votes
5 Answers
4
votes
4
votes
2
votes
I had the same problem , after I added some styles in project ( option ) , I had error ' style not found " I remove all styles in project --> option but alwyse the same problème
After I go the source project I find those lines ( TrySetStyle )
begin
TStyleManager.TrySetStyle('Turquoise Gray');
TStyleManager.TrySetStyle('Cobalt XEMedia');
Application.CreateForm(TFormLogin, FormLogin);
Application.CreateForm(TFormMain, FormMain);
Application.Run;
end.
The solution is just to remove those lines
But I think the probleme is some where the program can't find the path
0
votes
I think the only supported way of fixing IDE issues is to run Delphi setup and choose Repair (if the problem is really the Styles folder)
You can use Sysinternals' Procmon to check if your program (or the IDE) is failing to find/open a style file.
Also you may take a look at: How can I apply Delphi XE2 skins to forms in a DLL?