Re: thisform.visible
- From: Peter Huish <huish@xxxxxxxxxxxxxx>
- Date: Thu, 22 Nov 2007 21:17:45 GMT
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
.
- Follow-Ups:
- Re: thisform.visible
- From: Stefan Wuebbe
- Re: thisform.visible
- From: Rush Strong
- Re: thisform.visible
- References:
- thisform.visible
- From: Peter Huish
- Re: thisform.visible
- From: Stefan Wuebbe
- thisform.visible
- Prev by Date: Re: When Do I Need a Server Back End?
- Next by Date: Re: thisform.visible
- Previous by thread: Re: thisform.visible
- Next by thread: Re: thisform.visible
- Index(es):
Relevant Pages
|