mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
UPD: Left/right control spacing
This commit is contained in:
parent
b1689bb52a
commit
64a1fb91ee
1 changed files with 10 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ type
|
|||
|
||||
TKASCDDrawer = class(TCDDrawerCommon)
|
||||
public
|
||||
function GetMeasures(AMeasureID: Integer): Integer; override;
|
||||
procedure DrawEditBackground(ADest: TCanvas; ADestPos: TPoint; ASize: TSize;
|
||||
AState: TCDControlState; AStateEx: TCDEditStateEx); override;
|
||||
procedure DrawEdit(ADest: TCanvas; ASize: TSize;
|
||||
|
|
@ -51,6 +52,15 @@ end;
|
|||
|
||||
{ TKASCDDrawer }
|
||||
|
||||
function TKASCDDrawer.GetMeasures(AMeasureID: Integer): Integer;
|
||||
begin
|
||||
case AMeasureID of
|
||||
TCDEDIT_LEFT_TEXT_SPACING: Result := 0;
|
||||
TCDEDIT_RIGHT_TEXT_SPACING: Result := 0;
|
||||
else Result:= inherited GetMeasures(AMeasureID);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TKASCDDrawer.DrawEditBackground(ADest: TCanvas; ADestPos: TPoint;
|
||||
ASize: TSize; AState: TCDControlState; AStateEx: TCDEditStateEx);
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue