Hugo,
>Would it be better if we do this in each control class? That would make the control more ?self contained?, but requires code in the init (or refresh) which means that we?ll need to remember to issue a dodefault() every time we need application specific code in init/refresh of each control.You should always get in the
habit of calling dodefault()
everytime you override a method. It should become instinctive, second nature, just do it. The only decision you should be making is where to call it:
dodefault()
... more stuff
or
... more stuff
dodefault()
or
... more stuff
dodefault()
... even more stuff