안녕하세요^^;
MDI 부모폼에서 버튼 클릭 이벤트에 다음과 같이 코딩했슴다
=============================================================
for cMDIchildFind := 0 to (MDIChildCount-1) do
if MDIChildren[cMDIchildFind] is TFMmast_comp then begin
FMmast_comp.Show;
exit;
end;
FMmast_comp := TFMmast_comp.Create(self);
FMmast_comp.Show;
=============================================================
FMmast_comp 는 MDI 자식인데 create / Activate 이벤트을 사용합니다
그른데 트레이스로 추적해보니
FMmast_comp := TFMmast_comp.Create(self); 문을 지날때
create / Activate 문이 같이 수행되네요 ?
FMmast_comp.Show 호출시에 비로소 Activate 문이 실행 마땅 할텐데..
어떻게 방법이 있을까요?
그럼 수고 하세요.
|