RxFPC:small improvement in painting drop down button of TRxDBLookupCombo in case of BorderStyle = bsSingle - patch from Iliya Iliev
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6112 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
e9f3b75cf1
commit
6923fb62ee
@ -269,6 +269,7 @@ type
|
|||||||
function RealGetText: TCaption; override;
|
function RealGetText: TCaption; override;
|
||||||
procedure RealSetText(const Value: TCaption); override;
|
procedure RealSetText(const Value: TCaption); override;
|
||||||
|
|
||||||
|
procedure SetBorderStyle(NewStyle: TBorderStyle); override;
|
||||||
procedure Paint; override;
|
procedure Paint; override;
|
||||||
|
|
||||||
procedure LookupDataSetChanged(Sender: TObject); virtual;
|
procedure LookupDataSetChanged(Sender: TObject); virtual;
|
||||||
@ -1432,6 +1433,20 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TRxCustomDBLookupCombo.SetBorderStyle(NewStyle: TBorderStyle);
|
||||||
|
begin
|
||||||
|
inherited SetBorderStyle(NewStyle);
|
||||||
|
|
||||||
|
if BorderStyle = bsNone then
|
||||||
|
begin
|
||||||
|
FButton.BorderSpacing.Around := 2;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
FButton.BorderSpacing.Around := 0;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TRxCustomDBLookupCombo.Paint;
|
procedure TRxCustomDBLookupCombo.Paint;
|
||||||
const
|
const
|
||||||
padding : Integer = 1;
|
padding : Integer = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user