mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 07:49:25 +02:00
Designer: fix the palette update problem with DataModule on Windows. Message.Active can be WA_CLICKACTIVE, too.
git-svn-id: trunk@47142 -
This commit is contained in:
parent
4990c79e9f
commit
a3490826ea
@ -2921,6 +2921,8 @@ begin
|
||||
end;
|
||||
|
||||
function TDesigner.IsDesignMsg(Sender: TControl; var TheMessage: TLMessage): Boolean;
|
||||
var
|
||||
Act: Word;
|
||||
begin
|
||||
Result := false;
|
||||
if csDesigning in Sender.ComponentState then begin
|
||||
@ -2946,7 +2948,8 @@ begin
|
||||
', calling DoFormActivated(',TLMActivate(TheMessage).Active=WA_ACTIVE,')'
|
||||
]);
|
||||
{$ENDIF}
|
||||
Result:=DoFormActivated(TLMActivate(TheMessage).Active=WA_ACTIVE);
|
||||
Act:=TLMActivate(TheMessage).Active;
|
||||
Result:=DoFormActivated(Act in [WA_ACTIVE, WA_CLICKACTIVE]);
|
||||
end;
|
||||
LM_CLOSEQUERY: Result:=DoFormCloseQuery;
|
||||
LM_SETCURSOR: Result:=HandleSetCursor(TheMessage);
|
||||
|
Loading…
Reference in New Issue
Block a user