Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level forms...
Message
De
30/12/1999 11:13:48
 
 
À
30/12/1999 10:48:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00310401
Message ID:
00310425
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform