Default values at Controls
Posted: Fri Dec 26, 2014 3:09 pm
To our development team,
Please considere note these my recomendations are not really bug, see it as improvements for our source codes in HMG.
I'm making some tests at: TextBox, ComboBox, EditBox, CheckBox and DatePicker. And I found a error compiling when there is a missing parameter by calling functions directly. IMHO, these errors, should be treated in order to avoid error compiling, as follows:
_DefineTextBox at h_textbox.prg:
DEFAULT invisible TO .f.
DEFAULT RIGHT TO .f.
DEFAULT readonly TO .f.
DEFAULT notabstop TO .f.
DEFAULT bold TO .f.
DEFAULT italic TO .f.
DEFAULT underline TO .f.
DEFAULT strikeout TO .f.
DEFAULT disabledbackcolor TO .f.
DEFAULT disabledfontcolor TO .f.
_DefineMaskedTextbox.prg:
DEFAULT invisible TO .f.
DEFAULT RightAlign TO .f. (not used, but is defined as argument)
DEFAULT readonly TO .f.
DEFAULT notabstop TO .f.
DEFAULT bold TO .f.
DEFAULT italic TO .f.
DEFAULT underline TO .f.
DEFAULT strikeout TO .f.
DEFAULT disabledbackcolor TO .f.
DEFAULT disabledfontcolor TO .f.
Sometimes, it's easier to define control by calling respective function directly, not by DEFINE... or @ ...
IMHO, we have to preserve three ways for controls defining. It's by this reason, I kindly ask to our development team if is posible to be applied. Is it posible ?
Please considere note these my recomendations are not really bug, see it as improvements for our source codes in HMG.
I'm making some tests at: TextBox, ComboBox, EditBox, CheckBox and DatePicker. And I found a error compiling when there is a missing parameter by calling functions directly. IMHO, these errors, should be treated in order to avoid error compiling, as follows:
_DefineTextBox at h_textbox.prg:
DEFAULT invisible TO .f.
DEFAULT RIGHT TO .f.
DEFAULT readonly TO .f.
DEFAULT notabstop TO .f.
DEFAULT bold TO .f.
DEFAULT italic TO .f.
DEFAULT underline TO .f.
DEFAULT strikeout TO .f.
DEFAULT disabledbackcolor TO .f.
DEFAULT disabledfontcolor TO .f.
_DefineMaskedTextbox.prg:
DEFAULT invisible TO .f.
DEFAULT RightAlign TO .f. (not used, but is defined as argument)
DEFAULT readonly TO .f.
DEFAULT notabstop TO .f.
DEFAULT bold TO .f.
DEFAULT italic TO .f.
DEFAULT underline TO .f.
DEFAULT strikeout TO .f.
DEFAULT disabledbackcolor TO .f.
DEFAULT disabledfontcolor TO .f.
Sometimes, it's easier to define control by calling respective function directly, not by DEFINE... or @ ...
IMHO, we have to preserve three ways for controls defining. It's by this reason, I kindly ask to our development team if is posible to be applied. Is it posible ?