Changeset 396 for trunk/Components
- Timestamp:
- May 22, 2016, 12:18:33 PM (9 years ago)
- Location:
- trunk/Components
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/CanvasFontManager.pas
r15 r396 5 5 Uses 6 6 OS2Def, 7 Classes, Forms, PMWIN, Graphics; 7 Classes, 8 Forms, 9 PMWIN, 10 Graphics; 8 11 9 12 Const … … 132 135 133 136 uses 134 PMWin, PMGpi, OS2Def, PmDev, 137 PMWin, 138 PMGpi, 139 OS2Def, 140 PmDev, 135 141 SysUtils, 136 ACLStringUtility;142 StringUtilsUnit; 137 143 138 144 Imports … … 243 249 Face := FontFaces[ FaceIndex ]; 244 250 245 if Str ingsSame( Face.pName^, Name ) then251 if StrEqualIgnoringCase( Face.pName^, Name ) then 246 252 begin 247 253 Result := Face; … … 477 483 function SubstituteBitmapFontToOutline( const FaceName: string ): string; 478 484 begin 479 if Str ingsSame( FaceName, 'Helv' ) then485 if StrEqualIgnoringCase( FaceName, 'Helv' ) then 480 486 result := 'Helvetica' 481 else if Str ingsSame( FaceName, 'Tms Rmn' ) then487 else if StrEqualIgnoringCase( FaceName, 'Tms Rmn' ) then 482 488 result := 'Times New Roman' 483 else if Str ingsSame( FaceName, 'System Proportional' ) then489 else if StrEqualIgnoringCase( FaceName, 'System Proportional' ) then 484 490 result := 'Helvetica' 485 else if Str ingsSame( FaceName, 'System Monospaced' ) then491 else if StrEqualIgnoringCase( FaceName, 'System Monospaced' ) then 486 492 result := 'Courier' 487 else if Str ingsSame( FaceName, 'System VIO' ) then493 else if StrEqualIgnoringCase( FaceName, 'System VIO' ) then 488 494 result := 'Courier' 489 495 else -
trunk/Components/MultiColumnListBox.pas
r15 r396 175 175 176 176 uses 177 ACLStringUtility;177 StringUtilsUnit; 178 178 179 179 { TMultiColumnListBox } … … 292 292 Dest: TRect; 293 293 LineClipRect: TRect; 294 tmpColumns : TStringList; 295 i : longint; 294 296 begin 295 297 LineClipRect := FListBox.Canvas.ClipRect; … … 317 319 end; 318 320 319 while Line <> '' do 321 tmpColumns := TStringList.Create; 322 StrExtractStrings(tmpColumns, Line, [#9], #0); 323 324 for i := 0 to tmpColumns.Count - 1 do 320 325 begin 321 ItemToDraw := ExtractNextValue( Line, 322 #9 ); 326 ItemToDraw := tmpColumns[i]; 323 327 if ColumnIndex < FHeader.Sections.Count then 324 328 ColumnWidth := FHeader.Sections[ ColumnIndex ].Width … … 349 353 end 350 354 else 355 begin 356 tmpColumns.Destroy; 351 357 raise Exception.Create( 'Bitmap index out of range in MultiColumnListBox' ) 358 end 352 359 else 360 begin 361 tmpColumns.Destroy; 353 362 raise Exception.Create( 'No imagelist assigned in MultiColumnListBox' ); 354 363 end 355 364 end 356 365 else … … 362 371 inc( ColumnIndex ); 363 372 end; 373 tmpColumns.Destroy; 364 374 end; 365 375
Note:
See TracChangeset
for help on using the changeset viewer.