Changeset 460 for cprs/branches/foia-cprs/CPRS-Lib
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- Location:
- cprs/branches/foia-cprs/CPRS-Lib
- Files:
-
- 22 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Lib/ORCtrlLib60.cfg
r459 r460 34 34 -K$00400000 35 35 -E"c:\program files\borland\delphi6\dev\exesave" 36 -N" c:\cprs\DcuSave"37 -LE" c:\cprs\OR_3_195V25\Packages"38 -LN" c:\cprs\OR_3_195V25\Packages"39 -U" c:\cprs\OR_3_195V25\Packages"40 -O" c:\cprs\OR_3_195V25\Packages"41 -I" c:\cprs\OR_3_195V25\Packages"42 -R" c:\cprs\OR_3_195V25\Packages"36 -N"..\Packages" 37 -LE"..\Packages" 38 -LN"..\Packages" 39 -U"..\cprs-lib;..\Packages" 40 -O"..\cprs-lib;..\Packages" 41 -I"..\cprs-lib;..\Packages" 42 -R"..\cprs-lib;..\Packages" -
cprs/branches/foia-cprs/CPRS-Lib/ORCtrlLib60.dof
r459 r460 43 43 [Directories] 44 44 OutputDir=$(DELPHI)\dev\exesave 45 UnitOutputDir= c:\cprs\DcuSave46 PackageDLLOutputDir= c:\cprs\OR_3_195V25\Packages47 PackageDCPOutputDir= c:\cprs\OR_3_195V25\Packages48 SearchPath= c:\cprs\OR_3_195V25\Packages45 UnitOutputDir=..\Packages 46 PackageDLLOutputDir=..\Packages 47 PackageDCPOutputDir=..\Packages 48 SearchPath=..\cprs-lib;..\Packages 49 49 Packages=Vcl40;Vclx40;Vcldb40;vcldbx40;VclSmp40;Qrpt40;TeeUI40;teedb40;tee40;ibevnt40;nmfast40;VistABroker 50 50 Conditionals= 51 DebugSourceDirs= 51 DebugSourceDirs=..\Packages 52 52 UsePackages=0 53 53 [Parameters] … … 88 88 [Excluded Packages] 89 89 C:\Program Files\Borland\Delphi6\Projects\Bpl\SharedRPCBroker_D60.bpl=VistA SharedBroker Components 90 [HistoryLists\hlDebugSourcePath] 91 Count=1 92 Item0=..\Packages 90 93 [HistoryLists\hlUnitAliases] 91 94 Count=1 92 95 Item0=WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; 93 96 [HistoryLists\hlSearchPath] 94 Count=13 95 Item0=c:\cprs\OR_3_195V25\Packages 96 Item1=D:\vista\cprs\OR_3_195V25\Packages 97 Item2=D:\vista\cprs\OR_3_195V25\CPRS-Chart\dcu 98 Item3=..\cprs-lib;..\Packages 99 Item4=..\cprs-lib;..\Packages;..\cprs-chart;..\cprs-chart\dcu 100 Item5=d:\vista\main\cprs-lib;d:\vista\main\Packages 101 Item6=d:\vista\main\cprs-lib;d:\program files\vista\broker\bdk32\d5 102 Item7=d:\vista\main\cprs-chart;d:\vista\main\cprs-lib;d:\vista\main\cprs-chart\encounter;d:\vista\main\cprs-chart\consults 103 Item8=d:\vista\main\cprs-lib 104 Item9=\Dev\CPRS\main\CPRS-Lib 105 Item10=C:\Dev\CPRS\main\CPRS-Lib 106 Item11=\Projects\Perforce\main\CPRS-Lib 107 Item12=$(DELPHI)\Projects\Current\CPRS-Lib 97 Count=10 98 Item0=..\cprs-lib;..\Packages 99 Item1=..\cprs-lib;..\Packages;..\cprs-chart;..\cprs-chart\dcu 100 Item2=d:\vista\main\cprs-lib;d:\vista\main\Packages 101 Item3=d:\vista\main\cprs-lib;d:\program files\vista\broker\bdk32\d5 102 Item4=d:\vista\main\cprs-chart;d:\vista\main\cprs-lib;d:\vista\main\cprs-chart\encounter;d:\vista\main\cprs-chart\consults 103 Item5=d:\vista\main\cprs-lib 104 Item6=\Dev\CPRS\main\CPRS-Lib 105 Item7=C:\Dev\CPRS\main\CPRS-Lib 106 Item8=\Projects\Perforce\main\CPRS-Lib 107 Item9=$(DELPHI)\Projects\Current\CPRS-Lib 108 108 [HistoryLists\hlUnitOutputDirectory] 109 Count=13 110 Item0=c:\cprs\DcuSave 111 Item1=c:\cprs\OR_3_195V25\DcuSave 112 Item2=D:\vista\cprs\OR_3_195V25\Packages 113 Item3=D:\vista\cprs\OR_3_195V25\CPRS-Chart\dcu 114 Item4=..\cprs-lib\dcu 115 Item5=..\cprs-lib 116 Item6=d:\vista\main\cprs-lib\DCU 117 Item7=d:\vista\main\cprs-lib\DCUSave 118 Item8=d:\vista\main\cprs-chart\dcu 119 Item9=\Dev\DCUSave 120 Item10=C:\Dev\DCUSave 121 Item11=\Projects\DCUSave 122 Item12=$(DELPHI)\Projects\DCUSave 109 Count=10 110 Item0=..\Packages 111 Item1=..\cprs-lib\dcu 112 Item2=..\cprs-lib 113 Item3=d:\vista\main\cprs-lib\DCU 114 Item4=d:\vista\main\cprs-lib\DCUSave 115 Item5=d:\vista\main\cprs-chart\dcu 116 Item6=\Dev\DCUSave 117 Item7=C:\Dev\DCUSave 118 Item8=\Projects\DCUSave 119 Item9=$(DELPHI)\Projects\DCUSave 123 120 [HistoryLists\hlOutputDirectorry] 124 121 Count=2 … … 126 123 Item1=d:\vista\main\cprs-chart 127 124 [HistoryLists\hlBPLOutput] 128 Count=10 129 Item0=c:\cprs\OR_3_195V25\Packages 130 Item1=D:\vista\cprs\OR_3_195V25\Packages 131 Item2=D:\vista\cprs\OR_3_195V25\CPRS-Chart\dcu 132 Item3=..\Packages 133 Item4=d:\vista\main\Packages 134 Item5=d:\vista\main\cprs-lib 135 Item6=\Dev\Packages 136 Item7=C:\Dev\Packages 137 Item8=\Projects\Packages 138 Item9=$(DELPHI)\Projects\Packages 125 Count=7 126 Item0=..\Packages 127 Item1=d:\vista\main\Packages 128 Item2=d:\vista\main\cprs-lib 129 Item3=\Dev\Packages 130 Item4=C:\Dev\Packages 131 Item5=\Projects\Packages 132 Item6=$(DELPHI)\Projects\Packages 139 133 [HistoryLists\hlDCPOutput] 140 Count=10 141 Item0=c:\cprs\OR_3_195V25\Packages 142 Item1=D:\vista\cprs\OR_3_195V25\Packages 143 Item2=D:\vista\cprs\OR_3_195V25\CPRS-Chart\dcu 144 Item3=..\Packages 145 Item4=d:\vista\main\Packages 146 Item5=d:\vista\main\cprs-lib 147 Item6=\Dev\Packages 148 Item7=C:\Dev\Packages 149 Item8=\Projects\Packages 150 Item9=$(DELPHI)\Projects\Packages 134 Count=7 135 Item0=..\Packages 136 Item1=d:\vista\main\Packages 137 Item2=d:\vista\main\cprs-lib 138 Item3=\Dev\Packages 139 Item4=C:\Dev\Packages 140 Item5=\Projects\Packages 141 Item6=$(DELPHI)\Projects\Packages -
cprs/branches/foia-cprs/CPRS-Lib/ORCtrlLib60.dpk
r459 r460 2 2 3 3 {$R *.res} 4 {$R '..\CPRS-Chart\Accessibility_TLB.dcr'} 4 5 {$R 'ORCtrlsDsgn.dcr'} 5 {$R '..\CPRS-Chart\Accessibility_TLB.dcr'}6 6 {$ALIGN 8} 7 7 {$ASSERTIONS ON} … … 35 35 36 36 contains 37 uAccessAPI in 'uAccessAPI.pas', 38 Accessibility_TLB in '..\CPRS-Chart\Accessibility_TLB.pas', 37 39 ORCtrls in 'ORCtrls.pas', 38 ORCtrlsDsgn in 'ORCtrlsDsgn.pas', 39 uAccessAPI in 'uAccessAPI.pas', 40 Accessibility_TLB in '..\CPRS-Chart\Accessibility_TLB.pas'; 40 ORCtrlsDsgn in 'ORCtrlsDsgn.pas'; 41 41 42 42 end. 43 -
cprs/branches/foia-cprs/CPRS-Lib/ORCtrls.pas
r459 r460 26 26 FOnEnter: TNotifyEvent; 27 27 FOnExit: TNotifyEvent; 28 protected29 30 28 published 31 29 property OnEnter: TNotifyEvent read FOnEnter write FOnEnter; … … 543 541 property OnSynonymCheck: TORSynonymCheckEvent read GetOnSynonymCheck write SetOnSynonymCheck; 544 542 property CharsNeedMatch: integer read FCharsNeedMatch write SetNumForMatch; 543 {UniqueAutoComplete Was added as a result of the following defects: 544 7293 - PTM 85: Backspace and Dosage: Desired dosage does not populate if dosage is not in local dosage field 545 7337 - PTM 160 Meds: #8 IMO - Simple - Change Order in which Error generated if "Enter" is hit instead of "OK" 546 7278 - PTM 36 Meds: Select 40000 UNT/2ML and backspace to 4000 the dose selected remains 40000 547 7284 - Inconsistencies of pulling in a dose from the Possible Dose File } 545 548 property UniqueAutoComplete: Boolean read FUniqueAutoComplete write SetUniqueAutoComplete default False; 546 549 end; … … 898 901 TCaptionListBox = class(TListBox) 899 902 private 903 FHoverItemPos: integer; 900 904 FAccessible: IAccessible; 901 905 FRightClickSelect: boolean; // When true, a right click selects teh item 906 FHintOnItem: boolean; 902 907 procedure SetCaption(const Value: string); 903 908 function GetCaption: string; 904 909 procedure WMGetObject(var Message: TMessage); message WM_GETOBJECT; 905 910 procedure WMRButtonUp(var Message: TWMRButtonUp); message WM_RBUTTONUP; 911 procedure WMMouseMove(var Message: TWMMouseMove); message WM_MOUSEMOVE; 906 912 protected 907 913 FCaptionComponent: TStaticText; 914 procedure DoEnter; override; 908 915 public 909 916 procedure MakeAccessible( Accessible: IAccessible); … … 911 918 property RightClickSelect: boolean read FRightClickSelect write FRightClickSelect default FALSE; 912 919 property Caption: string read GetCaption write SetCaption; 920 //Make the ListBox's hint contain the contents of the listbox Item the mouse is currently over. 921 property HintOnItem: boolean read FHintOnItem write FHintOnItem default FALSE; 913 922 end; 914 923 … … 1440 1449 end; 1441 1450 1442 { ----------------------------------------------------- } 1451 { TORStaticText } 1452 1443 1453 procedure TORStaticText.DoEnter; 1444 1454 begin … … 1454 1464 FOnExit(Self); 1455 1465 end; 1456 1457 1466 1458 1467 { TORStrings } … … 2236 2245 //if Items.Count > 0 then SetFocusIndex(TopIndex); // this seems to cause problems 2237 2246 //Fix For ClearQuest: HDS00001576 2247 //This fix has been commented out, becuase it causes problems 2238 2248 { if (Items.Count > 0) and (Not IsAMouseButtonDown()) and (ItemIndex = -1) then 2239 2249 SetFocusIndex(TopIndex);//ItemIndex := TopIndex; } … … 3863 3873 //FEditBox.SelectAll; 3864 3874 //Fix For ClearQuest: HDS00001576 3865 {Commented out the fix for CQ: 1576, always selecing first item is 3866 causing issues.} 3875 //This fix has been commented out, becuase it causes problems 3867 3876 { with FListBox do 3868 3877 if (Items.Count > 0) and (Not IsAMouseButtonDown()) and (ItemIndex = -1) then … … 3872 3881 //Calling keyUp after key down creates a better mimic of a Keystroke. 3873 3882 FwdKeyUp(Self,key,[]); //fixes clearquest: HDS00001418 3874 end; }3883 end; } 3875 3884 inherited DoEnter; 3876 3885 PostMessage(Handle, UM_GOTFOCUS, 0, 0) … … 6476 6485 { TCaptionListBox } 6477 6486 6487 procedure TCaptionListBox.DoEnter; 6488 begin 6489 inherited; 6490 if HintOnItem then 6491 FHoverItemPos := -1; //CQ: 7178 & 9911 - used as last item index for ListBox 6492 end; 6493 6478 6494 function TCaptionListBox.GetCaption: string; 6479 6495 begin … … 6512 6528 else 6513 6529 inherited; 6530 end; 6531 6532 procedure TCaptionListBox.WMMouseMove(var Message: TWMMouseMove); 6533 var 6534 i : integer; 6535 begin 6536 inherited; 6537 //CQ: 7178 & 9911 - FHoverItemPos should be set to -1 in OnEnter 6538 //Make the TListBox's hint contain the contents of the listbox Item the mouse is currently over 6539 if HintOnItem then 6540 begin 6541 i := ItemAtPos(Point(Message.XPos, Message.YPos), true); 6542 if i <> FHoverItemPos then 6543 Application.CancelHint; 6544 if i = -1 then 6545 Hint := '' 6546 else 6547 Hint := Items[i]; 6548 FHoverItemPos := i; 6549 end; 6514 6550 end; 6515 6551 … … 6811 6847 6812 6848 end. 6813 6814 6815 -
cprs/branches/foia-cprs/CPRS-Lib/ORCtrlsDsgn.pas
r459 r460 164 164 end. 165 165 166 -
cprs/branches/foia-cprs/CPRS-Lib/ORDateLib60.dof
r459 r460 86 86 ProductVersion=1.0.0.0 87 87 Comments= 88 [Excluded Packages] 89 C:\Program Files\Borland\Delphi6\Projects\Bpl\SharedRPCBroker_D60.bpl=VistA SharedBroker Components 88 90 [HistoryLists\hlUnitAliases] 89 91 Count=1 -
cprs/branches/foia-cprs/CPRS-Lib/ORDtTm.pas
r459 r460 285 285 begin 286 286 ResizeAnchoredFormToFont(self); 287 //FormStyle := fsStayOnTop; 287 288 lstHour.TopIndex := 6; 288 289 FFromSelf := False; -
cprs/branches/foia-cprs/CPRS-Lib/ORFn.pas
r459 r460 114 114 procedure CallWhenIdleNotifyWhenDone(CallProc, DoneProc: TORIdleCallProc; Msg: String); 115 115 procedure menuHideAllBut(aMenuItem: tMenuItem; butItems: array of tMenuItem); 116 function TabIsPressed : Boolean; 117 function ShiftTabIsPressed : Boolean; 116 118 117 119 implementation // --------------------------------------------------------------------------- … … 832 834 833 835 procedure LimitStringLength(var AList: TStringList; MaxLength: Integer); 834 { change a TStringList so that all strings in the list are shorter than MaxLength }835 836 var 836 837 i, SpacePos: Integer; … … 852 853 while (x[SpacePos] <> ' ') and (SpacePos > 1) do Dec(SpacePos); {**REV**} {changed 0 to 1} 853 854 if SpacePos = 1 then SpacePos := MaxLength; {**REV**} {changed 0 to 1} 854 NewList.Add(Copy(x, 1, SpacePos - 1));855 NewList.Add(Copy(x, 1, SpacePos )); // CQ PSI-05-040 change SpacePos-1 to SpacePos 855 856 Delete(x, 1, SpacePos); 856 857 end; {while Length(x)} … … 1710 1711 end; 1711 1712 1713 function TabIsPressed : Boolean; 1714 begin 1715 Result := Boolean(Hi(GetKeyState(VK_TAB))) and not Boolean(Hi(GetKeyState(VK_SHIFT))); 1716 end; 1717 1718 function ShiftTabIsPressed : Boolean; 1719 begin 1720 Result := Boolean(Hi(GetKeyState(VK_TAB))) and Boolean(Hi(GetKeyState(VK_SHIFT))); 1721 end; 1722 1723 1712 1724 initialization 1713 1725 FBaseFont := TFont.Create; -
cprs/branches/foia-cprs/CPRS-Lib/ORNet.pas
r459 r460 1 1 unit ORNet; 2 2 3 {$DEFINE CCOWBROKER} 4 3 5 interface 4 6 5 uses SysUtils, Windows, Classes, Forms, Controls, ORFn, TRPCB, RPCConf1, Dialogs; //, SharedRPCBroker; 7 uses SysUtils, Windows, Classes, Forms, Controls, ORFn, TRPCB, RPCConf1, Dialogs 8 {$IFDEF CCOWBROKER}, CCOWRPCBroker {$ENDIF} ; //, SharedRPCBroker; 9 6 10 7 11 procedure SetBrokerServer(const AName: string; APort: Integer; WantDebug: Boolean); … … 32 36 33 37 var 34 //RPCBrokerV: TSharedRPCBroker; // an RPC Broker object - used by all calls 38 {$IFDEF CCOWBROKER} 39 RPCBrokerV: TCCOWRPCBroker; 40 {$ELSE} 35 41 RPCBrokerV: TRPCBroker; 42 //RPCBrokerV: TSharedRPCBroker; 43 {$ENDIF} 36 44 RPCLastCall: string; 37 45 38 46 implementation 39 47 … … 59 67 if RPCBrokerV = nil then 60 68 begin 69 {$IFDEF CCOWBROKER} 70 RPCBrokerV := TCCOWRPCBroker.Create(Application); 71 {$ELSE} 72 RPCBrokerV := TRPCBroker.Create(Application); 61 73 //RPCBrokerV := TSharedRPCBroker.Create(Application); 62 RPCBrokerV := TRPCBroker.Create(Application); 74 {$ENDIF} 63 75 with RPCBrokerV do 64 76 begin
Note:
See TracChangeset
for help on using the changeset viewer.