Ignore:
Timestamp:
Jul 2, 2010, 7:54:17 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Fixed crash on non-login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas

    r809 r819  
    369369    procedure SetEditorFocus;                                                  //kt
    370370    function  EditorHasText : boolean;                                         //kt
     371    procedure ChangeToNote(IEN : String; ADFN : String = '-1');                //kt 6/26/10
    371372  public
    372373    HtmlEditor : THtmlObj; //kt 8/09
     
    594595  TX_AUTH_SIGNED    := DKLangConstW('fNotes_Author_has_not_signedx_are_you_SURE_you_want_to_signx') +CRLF;
    595596end;
    596  
     597
    597598var
    598599  uPCEShow, uPCEEdit:  TPCEData;
     
    16111612  //          another object (say a prior THtmlObj) has become active and already
    16121613  //          changed the handler, then there will be a problem.  So probably best
    1613   //          to create them all at one.  //kt
     1614  //          to create them all at once.  //kt
    16141615  HtmlViewer := THtmlObj.Create(pnlHTMLViewer,Application);
    16151616  HtmlEditor := THtmlObj.Create(pnlHTMLEdit,Application);
     
    17051706      if FEditNote.Lines = nil then FEditNote.Lines := TStringList.Create; //kt 8/09
    17061707      Note := FEditNote.Lines;                                             //kt 8/09
    1707       {pnlWrite.Visible := True;                                           //kt 8/09
    1708       pnlRead.Visible := False; } //kt done in SetHTMLorTextEditor         //kt 8/09
    17091708      mnuViewDetail.Enabled    := False;
    17101709      if (FEditNote.IDParent <> 0) and (not FNewIDChild) then
     
    48944893
    48954894procedure TfrmNotes.mnuSearchNotesClick(Sender: TObject);
     4895//kt added
    48964896begin
    48974897  inherited;
    48984898  Application.CreateForm(TfrmPtDocSearch, frmPtDocSearch);
    4899   frmPtDocSearch.ShowModal;
    4900   //open diff note it selected
     4899  if frmPtDocSearch.ShowModal > -1 then begin
     4900    //open diff note it selected
     4901
     4902  end;
    49014903  frmPtDocSearch.Free;
    49024904end;
     4905
     4906procedure TfrmNotes.ChangeToNote(IEN : String; ADFN : String = '-1');
     4907//kt added 6/26/10
     4908//Effect changing note by simulating a notification click.
     4909begin
     4910end;
     4911
    49034912
    49044913initialization
Note: See TracChangeset for help on using the changeset viewer.