Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling the default event handler
Message
From
28/04/1998 19:36:43
 
 
To
28/04/1998 19:29:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00095545
Message ID:
00095549
Views:
26
>hi,
>
>I created a container class MyButtons which contains a few commandbuttons, one of them is called cmdQuit. The default action of cmdQuit.Click() is ThisForm.Release().
>Now I added MyButtons to a form, and I modified cmdQuit.Click(), the default cmdQuit.Click() is not invoked.
>
>How can I invoke the overridden default handler?
>
>TIA.

you have several options

either use :: as in
cmdQuit::click() (in the subclass)
or just DODEFAULT()
you can also
make the click event of cmdquick something like
if this.ClickExtention() and type("thisform.name")=="C"
    thisform.release()
endif
add a method ClickExtention to your class and only put additional code there

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform