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...

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...