Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select first field on a page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00249484
Message ID:
00249608
Vues:
29
Hi Gerald.

>> One other thing.... I'm finding that I would like to set my own base classes up for Pages within a Page frame.. but I cant seem to be able to sub class the foxpro basec class fro a page. <<

You can subclass the VFP PAge, but you can't do it visually. You need to do it with code. Then you can write a little builder to replace the VFP base class page with your custom class in your custom pagefame like so:

Suppose you have your custom page class defined as MyPage in a prg called MyClass. Your builder would have code in it like this:
SET PROC TO MyClass ADDITIVE
lnobjects = ASELOBJ(laSelected)	  
loPageFrame = laObjects[1]
WITH loPageFrame
   FOR lni = 1 to .PageCount
	.RemoveObject('Page'+ALLTRIM(STR(lni)))
	.AddObject('MyPage'+ALLTRIM(STR(lni)), 'MyPage')
   ENDFOR
ENDWITH		
	
Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform