LCL: Delete TCustomSpeedButton.DoMouseUp. Part of merge request !21.

This commit is contained in:
Juha 2022-06-03 12:51:23 +03:00
parent c98fc1c368
commit 72fda31b81
2 changed files with 0 additions and 12 deletions

View File

@ -367,7 +367,6 @@ type
function DialogChar(var Message: TLMKey): boolean; override;
procedure CalculatePreferredSize(var PreferredWidth,
PreferredHeight: integer; WithThemeSpace: Boolean); override;
procedure DoMouseUp(var Message: TLMMouse; Button: TMouseButton); override;
procedure MeasureDraw(Draw: boolean; PaintRect: TRect;
out PreferredWidth, PreferredHeight: integer);
procedure MouseEnter; override;

View File

@ -914,20 +914,9 @@ begin
Images := nil;
end;
{------------------------------------------------------------------------------
TCustomSpeedButton DoMouseUp "Event Handler"
------------------------------------------------------------------------------}
procedure TCustomSpeedButton.DoMouseUp(var Message: TLMMouse; Button: TMouseButton);
begin
if not (csNoStdEvents in ControlStyle) then
with Message do
MouseUp(Button, KeysToShiftState(Keys), XPos, YPos);
end;
procedure TCustomSpeedButton.WMLButtonDown(var Message: TLMLButtonDown);
begin
inherited;
// because csClickEvents is not set no csClicked is set in the inherited method
Include(FControlState, csClicked);
end;