Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoDefault() as a standard
Message
 
 
To
07/04/1998 15:55:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00090237
Message ID:
00090274
Views:
20
>This would be occasion for a hooks. IE, have a method in your class that is, say, PostClick. Then your click method would do what it needs to and then call postClick, which is where you'd put your specialized code in the subclass...
>
Exactly what I do! I have learned the hard way on this one. For example I have a form subclass that has some default settings in the Load (set talk off, etc). The last line of code is ThisForm.AddLoad() which is a custom method of the form where I can put additional stuff at design time without messing with the Load method and concerning myself with DoDefault(). Credit Barbara Paltiel for leading me down this "fool" proof approach.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform