mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 03:19:47 +02:00
AnchorDocking: Enable normal CloseButton icon only for Win32, other widgetsets can't handle it. Related to revision 64812 #ccb4169a92, Issue #35806
git-svn-id: trunk@64830 -
This commit is contained in:
parent
51dce4deb3
commit
965b69876b
@ -6547,15 +6547,15 @@ function WindowPart: TThemedWindow;
|
|||||||
// no check states available
|
// no check states available
|
||||||
Result := twCloseButtonNormal;
|
Result := twCloseButtonNormal;
|
||||||
if not IsEnabled then
|
if not IsEnabled then
|
||||||
Result := twCloseButtonDisabled
|
Result := {$IFDEF LCLWIN32}twCloseButtonDisabled{$ELSE}twSmallCloseButtonDisabled{$ENDIF}
|
||||||
else
|
else
|
||||||
if FState in [bsDown, bsExclusive] then
|
if FState in [bsDown, bsExclusive] then
|
||||||
Result := twCloseButtonPushed
|
Result := {$IFDEF LCLWIN32}twCloseButtonPushed{$ELSE}twSmallCloseButtonPushed{$ENDIF}
|
||||||
else
|
else
|
||||||
if FState = bsHot then
|
if FState = bsHot then
|
||||||
Result := twCloseButtonHot
|
Result := {$IFDEF LCLWIN32}twCloseButtonHot{$ELSE}twSmallCloseButtonHot{$ENDIF}
|
||||||
else
|
else
|
||||||
Result := twCloseButtonNormal;
|
Result := {$IFDEF LCLWIN32}twCloseButtonNormal;{$ELSE}twSmallCloseButtonNormal;{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user