Changeset 829 for cprs/trunk/CPRS-Lib/ORNet.pas
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Lib/ORNet.pas
r456 r829 43 43 {$ENDIF} 44 44 RPCLastCall: string; 45 46 AppStartedCursorForm: TForm = nil; 45 47 46 48 implementation … … 263 265 AStringList.Add(' '); 264 266 AStringList.Add('Results -----------------------------------------------------------------'); 265 AStringList.AddStrings(RPCBrokerV.Results);267 FastAddStrings(RPCBrokerV.Results, AStringList); 266 268 uCallList.Add(AStringList); 267 269 if uShowRPCs then StatusText(''); … … 347 349 end; 348 350 351 function GetRPCCursor: TCursor; 352 var 353 pt: TPoint; 354 begin 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; 362 end; 363 349 364 procedure CallV(const RPCName: string; const AParam: array of const); 350 365 { calls the broker leaving results in results property which must be read by caller } … … 353 368 begin 354 369 SavedCursor := Screen.Cursor; 355 Screen.Cursor := crHourGlass;370 Screen.Cursor := GetRPCCursor; 356 371 SetParams(RPCName, AParam); 357 372 CallBroker; //RPCBrokerV.Call; … … 365 380 begin 366 381 SavedCursor := Screen.Cursor; 367 Screen.Cursor := crHourGlass;382 Screen.Cursor := GetRPCCursor; 368 383 SetParams(RPCName, AParam); 369 384 CallBroker; //RPCBrokerV.Call; … … 379 394 if ReturnData = nil then raise Exception.Create('TString not created'); 380 395 SavedCursor := Screen.Cursor; 381 Screen.Cursor := crHourGlass;396 Screen.Cursor := GetRPCCursor; 382 397 SetParams(RPCName, AParam); 383 398 CallBroker; //RPCBrokerV.Call; 384 ReturnData.Assign(RPCBrokerV.Results);399 FastAssign(RPCBrokerV.Results, ReturnData); 385 400 Screen.Cursor := SavedCursor; 386 401 end; … … 395 410 begin 396 411 SavedCursor := Screen.Cursor; 397 Screen.Cursor := crHourGlass;412 Screen.Cursor := GetRPCCursor; 398 413 SetParams(RPCName, AParam); 399 414 RPCBrokerV.Call; … … 450 465 procedure LoadRPCData(Dest: TStrings; ID: Integer); 451 466 begin 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); 453 468 end; 454 469
Note:
See TracChangeset
for help on using the changeset viewer.