Ignore:
Timestamp:
Jan 4, 2010, 8:02:21 AM (15 years ago)
Author:
Kevin Toppenberg
Message:

Added HTML templating

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  
    891891    KeyTime.HighPart := KeyPressTime.dwHighDateTime;
    892892    Delta := floor( (NowTime2.QuadPart - KeyTime.QuadPart) / 100000);
    893     Result := (Delta < 100);
     893    Result := (Delta < 100) and (Delta > 0);
    894894  end;
    895895
  • cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/TMGHTML2.~pas

    r541 r654  
    655655
    656656function THtmlObj.MoveCaretToEnd : boolean;
    657 //kt added       
     657//kt added
    658658var //TextRange:IHtmlTxtRange;
    659659    count : integer;
    660660begin
     661  if not assigned (FTMGDisplayPointer) then begin
     662    Result := false;
     663    exit;
     664  end;
    661665  Result:=(S_OK = FTMGDisplayPointer.MoveUnit(DISPLAY_MOVEUNIT_BottomOfWindow,0));
    662666  count := 0;
    663   repeat   
     667  repeat
    664668    Result:=(S_OK = FTMGDisplayPointer.MoveUnit(DISPLAY_MOVEUNIT_NextLine,-1));
    665669    inc (count);
    666670  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));
    668672  Result:=(S_OK = FCaret.MoveCaretToPointer(FTMGDisplayPointer,
    669673                                            integer(FALSE),
    670674                                            CARET_DIRECTION_SAME));
    671675  {
    672   SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0); 
     676  SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0);
    673677  SendMessage(FmsHTMLwinHandle, WM_KEYUP, VK_END, 0);
    674   SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0); 
     678  SendMessage(FmsHTMLwinHandle, WM_KEYDOWN, VK_END, 0);
    675679  SendMessage(FmsHTMLwinHandle, WM_KEYUP, VK_END, 0);
    676680  }
Note: See TracChangeset for help on using the changeset viewer.