Default values at Controls

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Default values at Controls

Post 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 ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Default values at Controls

Post 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.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Default values at Controls

Post by Pablo César »

For GRID are missing default values at _DefineGrid for:

multiselect
InplaceEditOption
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Default values at Controls

Post 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!
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Default values at Controls

Post by Pablo César »

Thank you Claudio ! :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply