Changeset 654 for cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit
- Timestamp:
- Jan 4, 2010, 8:02:21 AM (15 years ago)
- Location:
- cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.pas
r541 r654 891 891 KeyTime.HighPart := KeyPressTime.dwHighDateTime; 892 892 Delta := floor( (NowTime2.QuadPart - KeyTime.QuadPart) / 100000); 893 Result := (Delta < 100) ;893 Result := (Delta < 100) and (Delta > 0); 894 894 end; 895 895 -
cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.~pas
r541 r654 655 655 656 656 function THtmlObj.MoveCaretToEnd : boolean; 657 //kt added 657 //kt added 658 658 var //TextRange:IHtmlTxtRange; 659 659 count : integer; 660 660 begin 661 if not assigned (FTMGDisplayPointer) then begin 662 Result := false; 663 exit; 664 end; 661 665 Result:=(S_OK = FTMGDisplayPointer.MoveUnit(DISPLAY_MOVEUNIT_BottomOfWindow,0)); 662 666 count := 0; 663 repeat 667 repeat 664 668 Result:=(S_OK = FTMGDisplayPointer.MoveUnit(DISPLAY_MOVEUNIT_NextLine,-1)); 665 669 inc (count); 666 670 until (Result = false) or (count > 500); 667 Result:=(S_OK = FTMGDisplayPointer.MoveUnit(DISPLAY_MOVEUNIT_CurrentLineEnd,0)); 671 Result:=(S_OK = FTMGDisplayPointer.MoveUnit(DISPLAY_MOVEUNIT_CurrentLineEnd,0)); 668 672 Result:=(S_OK = FCaret.MoveCaretToPointer(FTMGDisplayPointer, 669 673 integer(FALSE), 670 674 CARET_DIRECTION_SAME)); 671 675 { 672 SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0); 676 SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0); 673 677 SendMessage(FmsHTMLwinHandle, WM_KEYUP, VK_END, 0); 674 SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0); 678 SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0); 675 679 SendMessage(FmsHTMLwinHandle, WM_KEYUP, VK_END, 0); 676 680 }
Note:
See TracChangeset
for help on using the changeset viewer.