Page 1 of 1

ReadOnly property for all controls

Posted: Tue Mar 16, 2010 8:07 am
by sudip
Hello Roberto,

Is it possible to add ReadOnly property for all controls, including Grid and Combobox (many controls already had it) in the next version of HMG? And this property should be changed at run time :)

Thanks in advance.

With best regards.

Sudip

Re: ReadOnly property for all controls

Posted: Wed Mar 17, 2010 1:21 am
by Roberto Lopez
sudip wrote:Hello Roberto,

Is it possible to add ReadOnly property for all controls, including Grid and Combobox (many controls already had it) in the next version of HMG? And this property should be changed at run time :)

Thanks in advance.

With best regards.

Sudip
Are you tried 'Enabled' property?

Re: ReadOnly property for all controls

Posted: Wed Mar 17, 2010 3:16 am
by sudip
Roberto Lopez wrote:...
Are you tried 'Enabled' property?
Yes Roberto, I am using 'Enabled' property. But, 'Enabled' property has some visibility problem (Eg., Enabled property with Textbox and Readonly property of Textbox). Users cant see the contents of the control clearly when using 'Enabled' property .f.. Moreover, for grid controls, users can't browse the grid. To make a grid readonly, I am using a special technique, but IMHO, it will be better if we have 'Readonly' property for all controls, which can be changed at runtime. :)

With best regards.

Sudip

Re: ReadOnly property for all controls

Posted: Sat Mar 20, 2010 7:55 pm
by Roberto Lopez
sudip wrote:
Roberto Lopez wrote:...
Are you tried 'Enabled' property?
Yes Roberto, I am using 'Enabled' property. But, 'Enabled' property has some visibility problem (Eg., Enabled property with Textbox and Readonly property of Textbox). Users cant see the contents of the control clearly when using 'Enabled' property .f.. Moreover, for grid controls, users can't browse the grid. To make a grid readonly, I am using a special technique, but IMHO, it will be better if we have 'Readonly' property for all controls, which can be changed at runtime. :)

With best regards.

Sudip
Windows API does not have native support for 'readonly' for all controls.

This is the reason because it does not exists for all HMG controls.