- Timestamp:
- Jun 10, 2010, 3:13:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.~pas
r698 r793 60 60 FEditable: boolean; 61 61 ColorDialog: TColorDialog; 62 AllowNextBlur : boolean; 63 procedure SetMsgActive (Active : boolean); 62 AllowNextBlur : boolean; 64 63 function GetHTMLText:string; 65 64 procedure SetHTMLText(HTML:String); … … 91 90 public 92 91 {end public} 93 PopupMenu: TPopupMenu; 92 PopupMenu: TPopupMenu; 94 93 KeyStruck : boolean; // A VERY crude determiner as to if Modified. 95 94 NextControl : TWinControl; 96 95 PrevControl : TWinControl; 97 constructor Create(Owner:TControl; Application : TApplication); 96 procedure SetMsgActive (Active : boolean); 97 constructor Create(Owner:TControl; Application : TApplication); 98 98 destructor Destroy; override; 99 procedure Clear; 99 procedure Clear; 100 100 procedure ToggleBullet; 101 101 procedure ToggleItalic; … … 122 122 function MoveCaretToEnd : boolean; 123 123 function MoveCaretToPos(ScreenPos: TPoint) : HRESULT; //kt added 124 procedure InsertHTMLAtCaret(HTMLText : AnsiString); //kt 4/21/10 124 125 procedure InsertTextAtCaret(Text : AnsiString); //Note: Text is NOT HTMLtext 125 126 property HTMLText:string read GetHTMLText write SetHTMLText; … … 689 690 Result := FCaret.MoveCaretToPointer(FTMGDisplayPointer,Integer(True),CARET_DIRECTION_INDETERMINATE); 690 691 FCaret.Show(Integer(True)); 692 end; 693 694 procedure THtmlObj.InsertHTMLAtCaret(HTMLText : AnsiString); 695 var 696 Range: IHTMLTxtRange; 697 begin 698 Range:= Self.GetTextRange; 699 Range.pasteHTML(HTMLText); 691 700 end; 692 701
Note:
See TracChangeset
for help on using the changeset viewer.