if ActiveMDIChild<>NIL then begin if (ActiveMDIChild is TMDIChild) then begin (ActiveMDIChild as TMDIChild).Set_SyntaxType(tf,true); //и т.д. end; end;