mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 07:40:36 +01:00
lcl: don't highlight toolbar when modal form is active (partly fixes bug #0017993)
git-svn-id: trunk@28398 -
This commit is contained in:
parent
81ca694b8c
commit
6c01fc2949
@ -28,7 +28,7 @@ begin
|
||||
Inherited Create(TheOwner);
|
||||
// set the component style to csButton
|
||||
fCompStyle := csButton;
|
||||
ControlStyle := ControlStyle-[csClickEvents]+[csHasDefaultAction,csHasCancelAction];
|
||||
ControlStyle := ControlStyle - [csClickEvents] + [csHasDefaultAction, csHasCancelAction];
|
||||
Color := {$ifdef UseCLDefault}clDefault{$else}clBtnFace{$endif};
|
||||
ParentColor := False;
|
||||
TabStop := True;
|
||||
|
||||
@ -917,7 +917,7 @@ var
|
||||
begin
|
||||
if Assigned(Application) then
|
||||
begin
|
||||
NewMouseControl := CaptureControl;
|
||||
NewMouseControl := GetCaptureControl;
|
||||
if NewMouseControl = nil then
|
||||
NewMouseControl := Application.GetControlAtMouse;
|
||||
Application.DoBeforeMouseMessage(NewMouseControl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user