IDE: changing control selection to another lookuproot: update hook.lookuproot

git-svn-id: trunk@37917 -
This commit is contained in:
mattias 2012-07-12 12:51:04 +00:00
parent e54706e814
commit cb8750c0e9

View File

@ -14920,6 +14920,8 @@ begin
if (TheControlSelection=nil) or (FormEditor1=nil) then exit;
if OldForm<>nil then
OldForm.Invalidate;
if TheControlSelection.LookupRoot<>nil then
GlobalDesignHook.LookupRoot:=TheControlSelection.LookupRoot;
if NewForm<>nil then
NewForm.Invalidate;
UpdateIDEComponentPalette;