Changeset 492 for cprs/branches/GUI-config/CPRS-Lib/ORFn.pas
- Timestamp:
- Sep 17, 2008, 5:34:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/GUI-config/CPRS-Lib/ORFn.pas
r476 r492 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 // --------------------------------------------------------------------------- … … 129 131 130 132 // ConvertSpecialStrings arrays 131 SearchChars: array[0.. 6] of String = (' Ii ',' Iii ',' Iv ',' Vi ',' Vii ',' Viii ',' Ix');132 ReplaceChars: array[0.. 6] of String = (' II ',' III ',' IV ',' VI ',' VII ',' VIII ',' IX');133 SearchChars: array[0..7] of String = (' Ii ',' Iii ',' Iv ',' Vi ',' Vii ',' Viii ',' Ix ','-Va'); 134 ReplaceChars: array[0..7] of String = (' II ',' III ',' IV ',' VI ',' VII ',' VIII ',' IX ','-VA'); 133 135 134 136 { table for calculating CRC values (DWORD is Integer in Delphi 3, Cardinal in Delphi 4} … … 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;
Note:
See TracChangeset
for help on using the changeset viewer.