Changeset 300 for trunk/Packages
- Timestamp:
- Mar 8, 2021, 9:23:32 PM (4 years ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r296 r300 13 13 TTexture = record 14 14 Image: TBitmap; 15 clBevelLight, clBevelShade, clTextLight, clTextShade, clLitText, clMark, 16 clPage, clCover: TColor; 15 clBevelLight: TColor; 16 clBevelShade: TColor; 17 clTextLight: TColor; 18 clTextShade: TColor; 19 clLitText: TColor; 20 clMark: TColor; 21 clPage: TColor; 22 clCover: TColor; 17 23 end; 18 24 TLoadGraphicFileOption = (gfNoError, gfNoGamma); -
trunk/Packages/CevoComponents/StringTables.pas
r286 r300 22 22 function Search(const Content: string; var Handle, Index: integer): boolean; 23 23 end; 24 24 25 25 26 implementation … … 70 71 s: string; 71 72 begin 72 if Index < 0 then 73 if Index < 0 then begin 73 74 if Handle < 0 then begin 74 75 Result := ''; … … 86 87 end; 87 88 Result := S; 88 end else 89 if (Handle + Index + 1) >= Lines.Count then begin 90 Result := ''; 91 Exit; 92 end else Result := Lines[Handle + Index + 1]; 89 end; 90 end else 91 if (Handle + Index + 1) >= Lines.Count then begin 92 Result := ''; 93 Exit; 94 end else Result := Lines[Handle + Index + 1]; 93 95 while (Result <> '') and ((Result[1] = ' ') or (Result[1] = #9)) do 94 96 Delete(Result, 1, 1); … … 104 106 begin 105 107 Handle := GetHandle(Item); 106 if Handle >= 0 then 107 Result := LookupByHandle(Handle, Index) 108 else 109 Result := ''; 110 if Result = '' then 111 if Index < 0 then 112 Result := Format('[%s]', [Item]) 113 else 114 Result := Format('[%s %d]', [Item, Index]) 108 if Handle >= 0 then Result := LookupByHandle(Handle, Index) 109 else Result := ''; 110 if Result = '' then begin 111 if Index < 0 then Result := Format('[%s]', [Item]) 112 else Result := Format('[%s %d]', [Item, Index]); 113 end; 115 114 end; 116 115 … … 153 152 begin 154 153 result := false; 155 exit 154 exit; 156 155 end; 157 156 if Copy(Lines[h + i + 1], 1, 1) = '#' then 158 157 begin 159 158 h := h + i + 1; 160 i := -1 159 i := -1; 161 160 end; 162 161 if (h >= 0) and not ((Length(Lines[h + i + 1]) > 0) and (Lines[h + i + 1][1] in ['#', ':', ';'])) and
Note:
See TracChangeset
for help on using the changeset viewer.