Jump to content

runtime favicon değiştirmek


greenegitim

Recommended Posts

Merhaba, inidosyamdaki bir değere göre favicon değiştirmek istiyorum delphi içerisinde bunu değiştirebiliyorum fakat aşağıdaki kod ile değiştiremiyorum.

procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
var
  iniFile: TMemInifile;
  ico_path :string;
begin
  if not FileExists(GET_INI_SETINGS_PATH()) then
    CreateFirstSetingsFile()
  else
  begin
     iniFile := TMemInifile.Create(GET_INI_SETINGS_PATH(), TEncoding.UTF8);
    try
    ico_path :=iniFile.ReadString('AYARLAR','FAVICON_PATH','');
    UniServerModule.Favicon.LoadFromFile(ico_path);
    finally
     iniFile.Free;
    end;

  end;

end;


 

Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...