Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level forms...
Message
De
30/12/1999 11:21:12
 
 
À
30/12/1999 11:13:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00310401
Message ID:
00310434
Vues:
19
Well, I have most of those settings done already.

I verified that the coordinates that are being passed correspond to the position I want on the top level form. Desktop is set to false and the child form is set to a 1 (in top level form). It appears that the child form does not know the coordinates of the top level form because if the child form is autocentered the form shows up. It is a model form and control is being set to it because the top level form will not allow any interaction. As for covering the top level form. No. It is a search form that comes up from a click event on the top level form.



>Hi Patrick,
>
>>I have a top level form that makes a call to another form that is in a class. The form is called via createobject. I have passed parameters to place the called form into a specific location within the top level form but when I run it, the called form is placed way off the screen somewhere. Question is, is this possible to do and if so, how?
>
>Do debugouts to make sure you are passing the right stuff? What properties o assumed values are you passing? What is the actual result? What is the FormStyle of the called (in screen, in top form?) Whats its Desktop set too?
>
>Also, Are you trying to cover up the first form with a second? Instead of multiple forms in the case, you can use one form and a PageFrame.
>
>>Does the called form have a reference to the top level form somehow to know where it is supposed to be positioned or is the only way to have both forms centered on the screen to make sure that the called form shows up?
>
>To give the called form a reference to the calling form, pass it, like so:
>
>oForm = createobject('myClass', 'Param1', 'Param2', ThisForm)
>
>The third parameter int he called will be a reference to the caller, save it for future use.
Patrick L. Stovall
Senior Architect/Developer
MCP - C#

VeroQuest
P.O.Box 7216
Kalispell, MT 59904
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform