molla2005b Posted September 5, 2017 Share Posted September 5, 2017 hi I have 2 registered main form RegisterAppFormClass(TMainForm1); RegisterAppFormClass(TMainForm2); I want to switch between theme. where I can apply this code? UniMainModule.MainForm:=MainForm1; or UniMainModule.MainForm:=MainForm2; and is this the right way to do that? tnx Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 5, 2017 Administrators Share Posted September 5, 2017 Hi, It is not possible to have more than one MainForm. Quote Link to comment Share on other sites More sharing options...
molla2005b Posted September 6, 2017 Author Share Posted September 6, 2017 okeythank you Quote Link to comment Share on other sites More sharing options...
GerhardV Posted September 6, 2017 Share Posted September 6, 2017 Depending on your criteria for switching between them, you can have an "empty" main form with a uniContainerPanel. You then build two separate uniFrames which you assign at run-time to the container panel based on your criteria. That will solve the visual aspect of it, the main form however will still contain the code behind, or logic but that is transparent to the user. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.