Hello You must be sure that second SkinManager is created and available before creating buttons. If is possible to make a little example application for tests then it will be very helpful.
Thanks, I enclosed an example with all the unnecessary code stripped from my project. In the SkinManagers, you have to set the skindirectory manually, before compiling. Skinmanager 2 is set at design time.
The generated buttons should have the skin provided by the second skinmanager, and should toggle the “Down” property when pressed.
Two questions: 1) How do I get the skinning right? 2) When the buttons are pressed, a runtime error is generated at formclose?
Thanks Serge, that helped a lot! One character, big change… Besides, the access violation I mentioned was raised by the “TsButton.Refresh” method. But that line was also deleted now.