Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Not auto-creating forms
Thu, May 9 2013 12:41 PMPermanent Link

Matthew Jones

If I let the application auto-create a form, it works just fine with ShowModal, and
ModalResult works etc. If I don't auto-create it, but create it "manually" later,
it doesn't behave properly - it appears, but the modal parts don't work. Given the
auto-create is just
frmFeedback := TfrmFeedback.Create(Application);
how can this be?

I see that there was an discussion about not accessing the variable within the
constructor, but I would expect it to work on the line following the creation.

This isn't critical - I can auto-create - but I'd like to understand it as this
form isn't important and I'd like it not to sit around.

/Matthew Jones/
Fri, May 10 2013 4:30 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< If I let the application auto-create a form, it works just fine with
ShowModal, and ModalResult works etc. If I don't auto-create it, but create
it "manually" later, it doesn't behave properly - it appears, but the modal
parts don't work. Given the auto-create is just  frmFeedback :=
TfrmFeedback.Create(Application); how can this be?  >>

It works fine here in the 1.02 candidate, so I'm going to have to go back to
1.01 and confirm if that's still the case.

Tim Young
Elevate Software
www.elevatesoft.com
Image