Ario.Paxaz Posted August 5 Share Posted August 5 Hello Is it possible to change the color of the title at runtime? I tried with the following code but it didn't work. procedure TMainmForm.UnimBitBtn1Click(Sender: TObject); begin MainmForm.TitleColor := clRed; end; procedure TMainmForm.UnimBitBtn2Click(Sender: TObject); begin MainmForm.TitleColor := clGreen; end; Regards. Link to comment Share on other sites More sharing options...
Sherzod Posted August 6 Share Posted August 6 18 hours ago, Ario.Paxaz said: Is it possible to change the color of the title at runtime? Hello, Try this workaround: 1. Uses list: ... uniGUIJSUtils; 2. MainmForm.TitleColor := clGreen; JSInterface.JSCode(Self.Name + '.titlebar.setStyle({backgroundColor:"'+uniColor2Web(TitleColor)+'"});'); //<----------- 1 Link to comment Share on other sites More sharing options...
Recommended Posts