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:
juha 2014-12-08 21:30:26 +00:00
parent 4990c79e9f
commit a3490826ea

View File

@ -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);