[Lazarus] Opinions required on what the ReadOnly property should do for LCL controls.

Vincent Snijders vsnijders at quicknet.nl
Fri Feb 22 10:36:29 CET 2008


Michael Van Canneyt schreef:
> 
> On Thu, 21 Feb 2008, Gerard N/A wrote:
> 
>> There's a discussion going on about TDateTimeEdit.ReadOnly in Mantis report
>> 10861.
>> It's not a technical discussion, it's more about what ReadOnly should and
>> shouldn't do.
>>
>> See. http://bugs.freepascal.org/view.php?id=10861
>>
>> The list is probably a better place to discuss this, so please read the
>> report and give your opinion here.
> 
> RX has a property 'DirectInput' for its TDateEdit and friends. 
> It controls whether the user can type or is forced to use the button (dialog).
> 
> If you have DirectInput, then ReadOnly should disallow typing and also disallow 
> the use of the button.
> 
> Using enabled for 'readonly' is not correct, since the control is shown
> differently (grayed-out) when it is not enabled, and that is not the
> intention.
>

I am convinced. Gerard, can you enhance the patch with a DirectInput property?

Vincent



More information about the Lazarus mailing list