Changeset 1679 for cprs/trunk/CPRS-Chart/BA/fBALocalDiagnoses.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/BA/fBALocalDiagnoses.pas
r829 r1679 64 64 procedure lbOrdersMouseMove(Sender: TObject; Shift: TShiftState; X, 65 65 Y: Integer); 66 procedure FormKeyPress(Sender: TObject; var Key: Char);67 66 68 67 private … … 102 101 procedure ReSetCheckBoxStatus(pDxCode:String); 103 102 procedure DeleteSelectedDx; 104 function IsCtrlDown: boolean;105 103 106 104 public … … 108 106 procedure Enter(theCaller: smallint; pOrderIDList: TStringList); 109 107 procedure LoadTempRec(var thisRec: TBADxRecord; thisOrderID: string); 110 111 108 end; 112 109 … … 173 170 FLastHintItemNum := -1; 174 171 ClearAndDisableCBoxes 175 end;176 177 procedure TfrmBALocalDiagnoses.FormKeyPress(Sender: TObject; var Key: Char);178 begin179 inherited;180 if frmBALocalDiagnoses.IsCtrlDown then181 begin182 if ( Key = #10 ) then183 frmBALocalDiagnoses.buOK.Click;184 end;185 186 172 end; 187 173 … … 1560 1546 end; 1561 1547 1562 function TfrmBALocalDiagnoses.IsCtrlDown: boolean;1563 var1564 State: TKeyboardState;1565 begin { isCtrlDown }1566 GetKeyboardState(State);1567 Result := ((State[VK_CONTROL] and 128)<>0); // Ctrl-button1568 end; { isCtrlDown }1569 1570 1571 1572 1548 1573 1549 Initialization
Note:
See TracChangeset
for help on using the changeset viewer.