Re: thisform.visible




Thanks a lot for this explanation.

I have a modal form that is displayed by another form. If I do not have
a thisform.visible = .f. line in the load event of the modal form it
will not display unless there is a debugger breakpoint in the init event
of the model form.

How do you exactly start the form, is it an SCX or a class in a VCX?

It is a SCX started via Do Form theform with p1, p2, p3

That's ok, form.Visible is affected at runtime automatically -
that is, it depends on the way you instantiate the form.

Quite complicated actually:
If for example you use the Do Form command, the VFP runtime
instantiates the object and then sets Visible=.T. in the Show() pseudo
event. IOW,
Do Form yourModalForm.SCX
gives an internal event sequence of form Load, Init, Show, (Activate,
GotFocus)

OK, then why does the absense of a thisform.visible = .f. in the load
routine prevent the form from being displayed at all (unless there is a
debugger breakpoint in the init routine)

hth

very much.


thanks

pete

.



Relevant Pages