Page 1 of 1

Default values at Controls

Posted: Fri Dec 26, 2014 3:09 pm
by Pablo César
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 ?

Re: Default values at Controls

Posted: Fri Dec 26, 2014 3:17 pm
by mol
Sometimes, it's easier to define control by calling respective function directly, not by DEFINE... or @ ...
I agree.

It's also be useful to print data, when you can't change right, left aor center justify.
Functions are more useful, especially, when your app has controls definitions stored in database and they are created at runtime.

Default values at Controls

Posted: Tue Dec 30, 2014 12:16 am
by Pablo César
For GRID are missing default values at _DefineGrid for:

multiselect
InplaceEditOption

Re: Default values at Controls

Posted: Wed Dec 31, 2014 1:50 am
by srvet_claudio
Pablo César wrote: _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.
Pablo César wrote:For GRID are missing default values at _DefineGrid for:

multiselect
InplaceEditOption
Done!

Default values at Controls

Posted: Wed Dec 31, 2014 10:06 am
by Pablo César
Thank you Claudio ! :D