Q&A

  • 모달폼에서 다른 모달폼을 띠울때 버튼클릭 하면 다운 --^
==등장폼==

Fmain : 메인폼

Ffirst : 모달폼

Fsecond : 모달폼



==내용==

Fmain에서 Ffirst를 showmodal함(Ffirst에서는 다 잘됨)

Ffirst에서 Fsecond를 showmodal함

Fsecond에 있는 버튼을 누르면 다운



==내역==

Fmain에서

Ffirst := TForm.create(self);

Ffirst.showmodal;

Ffirst.Free;



Ffirst에서

Fsecond := Tform.Create(self);

Fsecond.showmodal;

Fsecond.Free;



==비교==

showmodal 하지 않고 show하면 역시 다운..

그러나

show하고 close;

라고 하면 다운 안됨.. --^



==결론==

메모리 문제 일거라고 추정.

다른 결론 모르겠음.



==참고사항==

Fsecond의 버튼 내용은 showmessage 달랑 하나임

시스템 사양

펜3 866MHz

램 256



==기타==

형~ 살려주세요 ㅠㅠ









2  COMMENTS
  • Profile
    돌멩이 2001.10.18 07:11
    늘초보 wrote:

    > ==등장폼==

    > Fmain : 메인폼

    > Ffirst : 모달폼

    > Fsecond : 모달폼

    >

    > ==내용==

    > Fmain에서 Ffirst를 showmodal함(Ffirst에서는 다 잘됨)

    > Ffirst에서 Fsecond를 showmodal함

    > Fsecond에 있는 버튼을 누르면 다운

    >

    > ==내역==

    > Fmain에서

    > Ffirst := TForm.create(self);

    > Ffirst.showmodal;

    > Ffirst.Free;

    >

    > Ffirst에서

    > Fsecond := Tform.Create(self);

    > Fsecond.showmodal;

    > Fsecond.Free;

    >

    > ==비교==

    > showmodal 하지 않고 show하면 역시 다운..

    > 그러나

    > show하고 close;

    > 라고 하면 다운 안됨.. --^

    >

    > ==결론==

    > 메모리 문제 일거라고 추정.

    > 다른 결론 모르겠음.

    >

    > ==참고사항==

    > Fsecond의 버튼 내용은 showmessage 달랑 하나임

    > 시스템 사양

    > 펜3 866MHz

    > 램 256

    >

    > ==기타==

    > 형~ 살려주세요 ㅠㅠ

    >

    >

    >

    >

    제가 격은 바로는 다운이 아니고 메세지 창이 모달폼 뒤에 있어서 다운으로

    오인하는것 같습니다.

  • Profile
    델파이 탐 크르즈 2001.10.18 03:37
    이렇게 하시면 다운이 않될것 같군요..

    제가 지금 하고 있는 소스를 올립니다..

    보시고 참고 하시면 되여...



    procedure Form_Display_MDI(FormClass: TFormClass; var Reference);

    begin

    Application.CreateForm(FormClass, Reference);

    end;





    procedure TNS_RSF010A.SpeedButton4Click(Sender: TObject);

    begin

    inherited;

    Form_Display_MDI(TNS_RSF011R, NS_RSF011R);

    end;

    =================================================================

    그럼 즐코하세요...



    늘초보 wrote:

    > ==등장폼==

    > Fmain : 메인폼

    > Ffirst : 모달폼

    > Fsecond : 모달폼

    >

    > ==내용==

    > Fmain에서 Ffirst를 showmodal함(Ffirst에서는 다 잘됨)

    > Ffirst에서 Fsecond를 showmodal함

    > Fsecond에 있는 버튼을 누르면 다운

    >

    > ==내역==

    > Fmain에서

    > Ffirst := TForm.create(self);

    > Ffirst.showmodal;

    > Ffirst.Free;

    >

    > Ffirst에서

    > Fsecond := Tform.Create(self);

    > Fsecond.showmodal;

    > Fsecond.Free;

    >

    > ==비교==

    > showmodal 하지 않고 show하면 역시 다운..

    > 그러나

    > show하고 close;

    > 라고 하면 다운 안됨.. --^

    >

    > ==결론==

    > 메모리 문제 일거라고 추정.

    > 다른 결론 모르겠음.

    >

    > ==참고사항==

    > Fsecond의 버튼 내용은 showmessage 달랑 하나임

    > 시스템 사양

    > 펜3 866MHz

    > 램 256

    >

    > ==기타==

    > 형~ 살려주세요 ㅠㅠ

    >

    >

    >

    >