Jump to content

Problem with theme sample


MVakili

Recommended Posts

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;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...