Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically adding pages
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586852
Message ID:
00586908
Vues:
19
Kalim,

Create a page class that has your code in it already and use that class for creating the additional pages.
* PageClass.prg
DEFINE CLASS MyPage AS Page

FUNCTION Activate
Wait window "I am active"
ENDFUNC

ENDEFINE
Now use that class;
* some code in the form
WITH Thisform.PageFrame
   .NewObject("MyNewPage","MyPage","Pageclass.prg")
   WITH .MyNewPage
      .Caption = "Hello a new page"
   ENDWITH
ENDWITH
Now the pageframe in the form will have a new page added and that page will show the wait window when it is activated.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform