|
@@ -60,8 +60,6 @@ implementation
|
|
|
uses
|
|
uses
|
|
|
PropEdits;
|
|
PropEdits;
|
|
|
|
|
|
|
|
-{$R bcpaperlistbox.rc}
|
|
|
|
|
-
|
|
|
|
|
procedure Register;
|
|
procedure Register;
|
|
|
begin
|
|
begin
|
|
|
RegisterComponents('BGRA Controls', [TBCListBox]);
|
|
RegisterComponents('BGRA Controls', [TBCListBox]);
|
|
@@ -89,9 +87,9 @@ end;
|
|
|
|
|
|
|
|
procedure TBCPaperPanel.LoadShadowFromBitmapResource;
|
|
procedure TBCPaperPanel.LoadShadowFromBitmapResource;
|
|
|
var
|
|
var
|
|
|
- res: TResourceStream;
|
|
|
|
|
|
|
+ res: TLazarusResourceStream;
|
|
|
begin
|
|
begin
|
|
|
- res := TResourceStream.Create(HInstance, 'SHADOW', RT_RCDATA);
|
|
|
|
|
|
|
+ res := TLazarusResourceStream.Create('SHADOW', nil);
|
|
|
FShadow := TBGRASliceScaling.Create(res);
|
|
FShadow := TBGRASliceScaling.Create(res);
|
|
|
FShadow.Margins := Margins(6, 9, 6, 9);
|
|
FShadow.Margins := Margins(6, 9, 6, 9);
|
|
|
res.Free;
|
|
res.Free;
|
|
@@ -154,4 +152,8 @@ begin
|
|
|
Self.BorderStyle := bsNone;
|
|
Self.BorderStyle := bsNone;
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
+initialization
|
|
|
|
|
+
|
|
|
|
|
+{$I bcpaperlistbox.lrs}
|
|
|
|
|
+
|
|
|
end.
|
|
end.
|