Ignore:
Timestamp:
Jul 7, 2010, 4:31:10 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrade to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Lib/ORNet.pas

    r456 r829  
    4343{$ENDIF}
    4444  RPCLastCall: string;
     45
     46  AppStartedCursorForm: TForm = nil;
    4547
    4648implementation
     
    263265  AStringList.Add(' ');
    264266  AStringList.Add('Results -----------------------------------------------------------------');
    265   AStringList.AddStrings(RPCBrokerV.Results);
     267  FastAddStrings(RPCBrokerV.Results, AStringList);
    266268  uCallList.Add(AStringList);
    267269  if uShowRPCs then StatusText('');
     
    347349end;
    348350
     351function GetRPCCursor: TCursor;
     352var
     353  pt: TPoint;
     354begin
     355  Result := crHourGlass;
     356  if assigned(AppStartedCursorForm) and (AppStartedCursorForm.Visible) then
     357  begin
     358    pt := Mouse.CursorPos;
     359    if PtInRect(AppStartedCursorForm.BoundsRect, pt) then
     360      Result := crAppStart;   
     361  end;
     362end;
     363
    349364procedure CallV(const RPCName: string; const AParam: array of const);
    350365{ calls the broker leaving results in results property which must be read by caller }
     
    353368begin
    354369  SavedCursor := Screen.Cursor;
    355   Screen.Cursor := crHourGlass;
     370  Screen.Cursor := GetRPCCursor;
    356371  SetParams(RPCName, AParam);
    357372  CallBroker;  //RPCBrokerV.Call;
     
    365380begin
    366381  SavedCursor := Screen.Cursor;
    367   Screen.Cursor := crHourGlass;
     382  Screen.Cursor := GetRPCCursor;
    368383  SetParams(RPCName, AParam);
    369384  CallBroker;  //RPCBrokerV.Call;
     
    379394  if ReturnData = nil then raise Exception.Create('TString not created');
    380395  SavedCursor := Screen.Cursor;
    381   Screen.Cursor := crHourGlass;
     396  Screen.Cursor := GetRPCCursor;
    382397  SetParams(RPCName, AParam);
    383398  CallBroker;  //RPCBrokerV.Call;
    384   ReturnData.Assign(RPCBrokerV.Results);
     399  FastAssign(RPCBrokerV.Results, ReturnData);
    385400  Screen.Cursor := SavedCursor;
    386401end;
     
    395410begin
    396411  SavedCursor := Screen.Cursor;
    397   Screen.Cursor := crHourGlass;
     412  Screen.Cursor := GetRPCCursor;
    398413  SetParams(RPCName, AParam);
    399414  RPCBrokerV.Call;
     
    450465procedure LoadRPCData(Dest: TStrings; ID: Integer);
    451466begin
    452   if (ID > -1) and (ID < uCallList.Count) then Dest.Assign(TStringList(uCallList.Items[ID]));
     467  if (ID > -1) and (ID < uCallList.Count) then FastAssign(TStringList(uCallList.Items[ID]), Dest);
    453468end;
    454469
Note: See TracChangeset for help on using the changeset viewer.