>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