Information générale
Catégorie:
Codage, syntaxe et commandes
I think i'm trying something like that right now
I've created a method doForm in the programmaticaly defined goapp class (this is the main class from wich everything happens(at least thats the idea :-))
I wanted to cascade opened forms. for this I had to find out if there where activeforms in the _screen object.
I call upon this doForm method when I open a form (in the init event). This method also increments a property totalForms wich I can use to see if there is an activeform. If so, I use the activeform's left and top properties incremented by 15 for the new form.
This sounds like something you mean. :-)
Any help on the subject is very welcome because i already stumbled upon a problem. If I open a form from within the init method of the main class I get an error: 'goapp(the main class) is not an object' I think this means that the code in the init event to check if goapp.totalForms > 0 is not working in this scenario.
thanks!
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