Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

Dynamically open a form 8 years 1 month ago #9996

  • Peter Pohlmann
  • Peter Pohlmann's Avatar Topic Author
  • Visitor
  • Visitor
Hello Gurus !

I have a problem with CT-ide on a mac OS X ..

I try to create a form dynamically. Works on linux ok but somehow on the mac QT
it gives me trouble. It opens alright the new form.
When I close the new form the application will lock up .

One thing i noticed, if I put the show message () .. in the final section
it works ok, but of course i don't want that message box in there.

procedure TForm2.MenuItem2Click(Sender: TObject);


Form5 := TForm5.Create(Application) ;
try
Form5.ShowModal;
finally
// showmessage('in finally F5');
FreeAndNil(Form5);
end;
end;

Any suggestions ?

Thanks,
Peter

Please Log in or Create an account to join the conversation.

Dynamically open a form 8 years 1 month ago #9997

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
The problem Sir
is in line

Form5 := TForm5.Create(Application) ;

try this
Form5 := TForm5.Create(nil) ;
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: Peter Pohlmann

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Dynamically open a form 8 years 1 month ago #9998

  • Peter Pohlmann
  • Peter Pohlmann's Avatar Topic Author
  • Visitor
  • Visitor
Thank you !

Please Log in or Create an account to join the conversation.

  • Page:
  • 1