Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Application Object example?
Message
 
To
23/11/1999 12:15:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00294399
Message ID:
00296374
Views:
41
In my Application Object, I created properties for each manager
class:

oApp.cWindowsMgr = "MyWinMgr.Vcx"
oApp.cSecurityMgr = "MySecurityMgr.Vcx"
oApp.cMenuMgr = "MyMenuMgr.Vcx"

Then if I want to subclass any of the manager classes, I can specify the new class library. In my oApp.SetupClasses() method I have:

IF NOT EMPTY(This.cWindowsMgr)
PUBLIC oWindows
SET CLASSLIB TO (This.cWindowsMgr)
oWindows = CREATEOBJECT("WinMgr")
ENDIF

The only catch is that the subclassed windows manager must have the
same name as the original windows class. Other that that, it works
really well for me and is extremely flexible.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform