Skip to content

Commit 4d0cd5e

Browse files
authored
Merge pull request #173 from bgrabitmap/dev-bgracontrols
Dev bgracontrols
2 parents cf906b8 + 7923874 commit 4d0cd5e

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

bcfluentslider.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ procedure TBCFluentSlider.SetOrientation(AValue: TSliderOrientation);
213213
if FOrientation=AValue then Exit;
214214
k:= ord(FOrientation) + ord(AValue)+1;
215215
FOrientation:=AValue;
216+
if csLoading in ComponentState then exit;
216217
if odd(k) or (Width=Height) then
217218
DiscardBitmap
218219
else
@@ -340,7 +341,7 @@ procedure TBCFluentSlider.DrawTicks;
340341
else
341342
begin
342343
if FBorderWidth<2 then y:= round(p.y) else y:= p.y;
343-
Bitmap.DrawLineAntialias(x + xy1, y, x+ xy2, y, c, FBorderWidth);
344+
Bitmap.DrawLineAntialias(p.x + xy1, y, p.x+ xy2, y, c, FBorderWidth);
344345
end;
345346
v+= FTickFrequency;
346347
end;
@@ -559,6 +560,7 @@ function TBCFluentSlider.GetThumbRadius: integer;
559560

560561
procedure TBCFluentSlider.RedrawBitmapContent;
561562
begin
563+
Bitmap.FillTransparent;
562564
CalculateThumbRect;
563565
DrawBackground;
564566
FRealLineColor:= FLineColor;

bgracontrols.lpk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</CompilerOptions>
3434
<Description Value="BGRA Controls is a set of graphical UI elements that you can use with Lazarus LCL applications."/>
3535
<License Value="Modified LGPL"/>
36-
<Version Major="9" Release="1"/>
36+
<Version Major="9" Release="1" Build="3"/>
3737
<Files Count="70">
3838
<Item1>
3939
<Filename Value="atshapelinebgra.pas"/>

bgracontrolsinfo.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface
99
Classes, SysUtils;
1010

1111
const
12-
BGRAControlsVersion = 9000100;
12+
BGRAControlsVersion = 9000103;
1313

1414
function BGRAControlsVersionStr: string;
1515

bgrapascalscriptcomponent.lpk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
1212
</SearchPaths>
1313
</CompilerOptions>
14-
<Version Major="9" Release="1"/>
14+
<Version Major="9" Release="1" Build="3"/>
1515
<Files Count="3">
1616
<Item1>
1717
<Filename Value="bgrapascalscript.pas"/>

update_bgracontrols_force.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"ForceNotify" : true,
99
"InternalVersion" : 25,
1010
"Name" : "bgracontrols.lpk",
11-
"Version" : "9.0.1.0"
11+
"Version" : "9.0.1.3"
1212
},
1313
{
1414
"ForceNotify" : false,
1515
"InternalVersion" : 1,
1616
"Name" : "bgrapascalscriptcomponent.lpk",
17-
"Version" : "9.0.1.0"
17+
"Version" : "9.0.1.3"
1818
}
1919
]
2020
}

0 commit comments

Comments
 (0)