lcl: cleanup

git-svn-id: trunk@25295 -
This commit is contained in:
paul 2010-05-10 13:22:00 +00:00
parent 581c468507
commit 65b652094f

View File

@ -702,11 +702,9 @@ end;
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TControl.CMVisibleChanged(var Message : TLMessage); procedure TControl.CMVisibleChanged(var Message : TLMessage);
begin begin
if (not (csDesigning in ComponentState) if (not (csDesigning in ComponentState) or (csNoDesignVisible in ControlStyle)) and
or (csNoDesignVisible in ControlStyle)) (not (csLoading in ComponentState)) then
and (not (csLoading in ComponentState)) then begin InvalidateControl(True, FVisible and (csOpaque in ControlStyle), True);
InvalidateControl(true, FVisible and (csOpaque in ControlStyle),true);
end;
end; end;
procedure TControl.CMTextChanged(var Message: TLMessage); procedure TControl.CMTextChanged(var Message: TLMessage);