Hi!
One of my users asked to provide facility to manage colors himself.
I am having an application object [oApp] and thought that's the right place to store these settings.
Just as an example:
Than I have in the init-method of controls in custom-base-class some like:
My Q: what is best way to have all concerned controls such a custom method?
A solution might be hardcoding in every concerned control from my custom-base-class but from OOP vision I feel, but don't know how to, this must be possible with a single piece of code which will be valid for all controls it concerns.
Any suggestion?
-Bart
One of my users asked to provide facility to manage colors himself.
I am having an application object [oApp] and thought that's the right place to store these settings.
Just as an example:
Than I have in the init-method of controls in custom-base-class some like:
Code:
if vartype(oApp) = "O" and !isnull(oApp)
this.disabledbackcolor = oApp.cDisabledBackcolor
endif
this will be repeated for forecolor, backcolor etc.
A solution might be hardcoding in every concerned control from my custom-base-class but from OOP vision I feel, but don't know how to, this must be possible with a single piece of code which will be valid for all controls it concerns.
Any suggestion?
-Bart