[Lazarus] OI Checkboxes

Bart bartjunk64 at gmail.com
Wed Nov 19 11:35:45 CET 2014


Juha wrote (in another discussion):

> P.S
> I have also made an option to use CheckBoxes for Boolean values in Object
> Inspector.
> Please check how it works.

I find this rather counter-intuitive.
If I have a checkbox that is not checked and the caption of it says
"False" then I would assume that "False" is not checked. This how
checkboxes generally work an how people understand them.
IMO you are breaking wiht the general perception users have of how
this GUI element works.
I would not expect that clicking on the checkbox would change it's
caption to "True".

[X] True -> meaning is obvious
[ ] True -> suggests True is not selected, so value probably is False
[ ] False -> Meaning is ambiguous, to say the least.

An analogy:
([  ] is the checkbox)

Save current settings: [  ] No

What does this mean?
If such a thing existed in a real program, you would probably see
screenshots of it on http://thedailywtf.com/  <grin>

I would suggest to either remove the caption:
( | marks the vertical gridline in OI)
AutoSize | [  ]
KeyPreview | [X]

Or since only one value can ever be selected: use two radiobuttons
(which would look rather ugly).

I still don't see why we cannot use a "read-only" combobox for these
kinde of properties. The argument that you cannot copy the value
anymore can easily be overcome.

Bart




More information about the Lazarus mailing list