MVakili Posted September 26, 2022 Share Posted September 26, 2022 I took this code to change the theme from the sample codes of the UNI folder, but it does not work in my program Does anyone have any ideas? Explanation that the filling part of the theme works perfectly But the theme changer does nothing procedure TSettingForm.UniFormShow(Sender: TObject); var I : Integer; S : TUniStringArray; begin S := UniServerModule.ThemeManager.AllThemes; ThemeBox.Items.Clear; for I := Low(S) to High(S) do ThemeBox.Items.Add(S[I]); end; procedure TSettingForm.ThemeBoxChange(Sender: TObject); begin DMT.Theme:=ThemeBox.Text; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 26, 2022 Share Posted September 26, 2022 Hello, You need to set UniMainModule -> RecallLastTheme to True. 1 Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 26, 2022 Author Share Posted September 26, 2022 7 hours ago, Sherzod said: Hello, You need to set UniMainModule -> RecallLastTheme to True. Tanks It Works 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.