Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement