How to: Add a logo


Topic:

Add a symbol


Class hierarchy:

IPCsApplication IPCsDocument IPCsDrawing2


Description:

Adding a logo to a project


Sourcecode:
[+] Delphi
uses DPSCAD_TLB;

begin
  {check if we're connected to Automation}
  if CheckConnection() then    // (See function here)
    begin
      {adding to logo1}
      (PCsApplication.ActiveDocument.Drawing as IPCsDrawing2).LoadLogo(0,'c:\MyPic\logo.bmp');
      PCsApplication.Redraw;
    end;
end;