|
To enable clipboard operations in Delphi you must add the following line to the bottom of the rmpHTML_TLB.pas file
procedure Register; begin RegisterComponents(dtlOcxPage, [THTMLed]); RegisterComponents(dtlServerPage, [TclsDirectoryList, TclsDirectoryItem]); end;
initialization // add this OleInitialize(nil); // add this
finalization // add this OleUninitialize; // add this
end.
To prevent GPL errors when closing applications containing the control implement the following into each form containing the control.
procedure TForm1.FormActivate(Sender: TObject); var lKey: widestring; begin
lKey := 'demoKey';
htmled1.setLicenceKey (lKey); end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction); begin
HTMLed1.Free;
end; |