Ignore:
Timestamp:
Jun 10, 2010, 3:13:12 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.~pas

    r698 r793  
    6060      FEditable:               boolean;       
    6161      ColorDialog:             TColorDialog;       
    62       AllowNextBlur :          boolean;     
    63       procedure SetMsgActive (Active : boolean);
     62      AllowNextBlur :          boolean;
    6463      function  GetHTMLText:string;
    6564      procedure SetHTMLText(HTML:String);
     
    9190    public
    9291      {end public}
    93       PopupMenu:     TPopupMenu;     
     92      PopupMenu:     TPopupMenu;
    9493      KeyStruck : boolean; // A VERY crude determiner as to if Modified.
    9594      NextControl : TWinControl;
    9695      PrevControl : TWinControl;
    97       constructor Create(Owner:TControl; Application : TApplication);
     96      procedure SetMsgActive (Active : boolean);
     97      constructor Create(Owner:TControl; Application : TApplication);
    9898      destructor Destroy; override;
    99       procedure Clear;       
     99      procedure Clear;
    100100      procedure ToggleBullet;
    101101      procedure ToggleItalic;
     
    122122      function  MoveCaretToEnd : boolean;
    123123      function  MoveCaretToPos(ScreenPos: TPoint) : HRESULT;  //kt added
     124      procedure InsertHTMLAtCaret(HTMLText : AnsiString); //kt 4/21/10
    124125      procedure InsertTextAtCaret(Text : AnsiString); //Note: Text is NOT HTMLtext
    125126      property  HTMLText:string read GetHTMLText write SetHTMLText;
     
    689690  Result := FCaret.MoveCaretToPointer(FTMGDisplayPointer,Integer(True),CARET_DIRECTION_INDETERMINATE);
    690691  FCaret.Show(Integer(True));
     692end;
     693
     694procedure THtmlObj.InsertHTMLAtCaret(HTMLText : AnsiString);
     695var
     696   Range: IHTMLTxtRange;
     697begin
     698   Range:= Self.GetTextRange;
     699   Range.pasteHTML(HTMLText);
    691700end;
    692701
Note: See TracChangeset for help on using the changeset viewer.