[Lazarus] Opinions required on what the ReadOnly property should do for LCL controls.
Michael Van Canneyt
michael at freepascal.org
Fri Feb 22 09:44:22 CET 2008
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.
Michael.
More information about the Lazarus
mailing list