mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:19:28 +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
|
||||
Result := twCloseButtonNormal;
|
||||
if not IsEnabled then
|
||||
Result := twCloseButtonDisabled
|
||||
Result := {$IFDEF LCLWIN32}twCloseButtonDisabled{$ELSE}twSmallCloseButtonDisabled{$ENDIF}
|
||||
else
|
||||
if FState in [bsDown, bsExclusive] then
|
||||
Result := twCloseButtonPushed
|
||||
Result := {$IFDEF LCLWIN32}twCloseButtonPushed{$ELSE}twSmallCloseButtonPushed{$ENDIF}
|
||||
else
|
||||
if FState = bsHot then
|
||||
Result := twCloseButtonHot
|
||||
Result := {$IFDEF LCLWIN32}twCloseButtonHot{$ELSE}twSmallCloseButtonHot{$ENDIF}
|
||||
else
|
||||
Result := twCloseButtonNormal;
|
||||
Result := {$IFDEF LCLWIN32}twCloseButtonNormal;{$ELSE}twSmallCloseButtonNormal;{$ENDIF}
|
||||
end;
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user