@@ -1269,7 +1269,6 @@ TVTHeader = class(TPersistent)
1269
1269
FFixedAreaConstraints: TVTFixedAreaConstraints; // Percentages for the fixed area (header, fixed columns).
1270
1270
FImages: TCustomImageList;
1271
1271
FImageChangeLink: TChangeLink; // connections to the image list to get notified about changes
1272
- FSortDolumn: TColumnIndex;
1273
1272
{$IF LCL_FullVersion >= 2000000}
1274
1273
FImagesWidth: Integer;
1275
1274
{$IFEND}
@@ -5234,56 +5233,56 @@ function GetScalePercent: Integer;
5234
5233
end;
5235
5234
{$IFEND}
5236
5235
5237
- function BuildResourceName(ResourceName: String): String;
5236
+ function BuildResourceName(const ResourceName: String): String;
5238
5237
var
5239
- percent : Integer;
5238
+ Percent : Integer;
5240
5239
begin
5241
5240
Result := ResourceName;
5242
5241
{$IF LCL_FullVersion >= 2000000}
5243
- percent := GetScalePercent;
5244
- if percent = 150 then
5242
+ Percent := GetScalePercent;
5243
+ if Percent = 150 then
5245
5244
Result := Result + '_150'
5246
- else if percent <> 100 then
5245
+ else if Percent <> 100 then
5247
5246
Result := Result + '_200';
5248
5247
{$IFEND}
5249
5248
end;
5250
5249
5251
5250
//----------------------------------------------------------------------------------------------------------------------
5252
5251
5253
5252
// Support resources with bmp as well as png
5254
- procedure LoadBitmapFromResource(ABitmap : TBitmap; AResName : String);
5253
+ procedure LoadBitmapFromResource(Bitmap : TBitmap; const ResourceName : String);
5255
5254
var
5256
- bm : TCustomBitmap;
5255
+ ResourceBitmap : TCustomBitmap;
5257
5256
begin
5258
- bm := CreateBitmapFromResourceName(0, BuildResourceName(AResName ));
5257
+ ResourceBitmap := CreateBitmapFromResourceName(0, BuildResourceName(ResourceName ));
5259
5258
try
5260
- bm .Transparent := true ;
5261
- ABitmap .Assign(bm );
5259
+ ResourceBitmap .Transparent := True ;
5260
+ Bitmap .Assign(ResourceBitmap );
5262
5261
finally
5263
- bm .Free;
5262
+ ResourceBitmap .Free;
5264
5263
end;
5265
5264
end;
5266
5265
5267
5266
function CreateCheckImageList(CheckKind: TCheckImageKind): TImageList;
5268
5267
{$IF LCL_FullVersion >= 2000000}
5269
5268
var
5270
- bm : TCustomBitmap;
5271
- resName : String;
5269
+ Bitmap : TCustomBitmap;
5270
+ ResourceName : String;
5272
5271
{$ENDIF}
5273
5272
begin
5274
5273
Result := TImageList.Create(nil);
5275
5274
Result.Height := 16;
5276
5275
Result.Width := 16;
5277
5276
{$IF LCL_FullVersion >= 2000000}
5278
5277
Result.RegisterResolutions([16, 24, 32]);
5279
- Result.Scaled := true ;
5280
- resname := BuildResourceName(CheckImagesStrings[CheckKind]);
5281
- bm := CreateBitmapFromResourceName(0, resname );
5278
+ Result.Scaled := True ;
5279
+ Resourcename := BuildResourceName(CheckImagesStrings[CheckKind]);
5280
+ Bitmap := CreateBitmapFromResourceName(0, ResourceName );
5282
5281
try
5283
- bm .Transparent := true ;
5284
- Result.AddSliced(bm , 25, 1);
5282
+ Bitmap .Transparent := True ;
5283
+ Result.AddSliced(Bitmap , 25, 1);
5285
5284
finally
5286
- bm .Free;
5285
+ Bitmap .Free;
5287
5286
end;
5288
5287
{$ELSE}
5289
5288
Result.AddResourceName(0, CheckImagesStrings[CheckKind], clFuchsia);
0 commit comments