Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select first field on a page
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00249484
Message ID:
00249608
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform