topLeftLogo
  • Your Account



  • Shopping Cart
  • Empty


    HTML Editor Delphi7
    Home

    Using the nBit HTML Editor in Borland Delphi7

     

    See Also...
    Editor User Interface Part 1
    Editor User Interface Part 2
    Programmers API
    Using the Editor in VB6
    Using the Editor in Microsoft Access 
    Using the Editor in Delphi
    Using the editor in .NET
    In Borland Delphi you need to create a wrapper class for the editor so that it can be seeded onto a Delphi Form. 

    1. Start a new Delphi Exe Project
    2. Under the tools menu select Environment Options

     

    3. Enable the Ignore special CoClass Flags when importing and Can Create options


    4. Select Project -> Import Type Library 



    5. In the list select rmpHTML. Ensure the Create Component Wrapper option is selected and press Install.



    6. Click OK on install into Existing Package



    7. In the ActiveX tab of your available Dephi components you can now drag and drop the editor ( second from the right ) onto your Delphi form.




    8. Alternatively you may download this file ( rmpHTML_TLB.zip ) and select install component from the component menu

    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;

    Navigation - Previous : Next
    © nBit Information Technologies 2003-2011 - Internet Enable Components
    Email : nbit.net.au@nbit.net.au
    Site mirrored at www.editcontrol.com