It seems no longer possible to toggle a property true/false with double click. Is this a bug?
Mailing lists / lazarus / 2017-06
True/False in Object Inspector
6 messages · 5 people ·
- Kkapibara 2
- JJuha Manninen 1
- MMartin Frb 1
- OOndrej Pokorny 1
- WWerner Pamler 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
kapibara wroteIt seems no longer possible to toggle a property true/false with double click. Is this a bug?
It works here. What OS/WS? What settings (checkboxes or comboboxes for bool values)?
Ondrej
Ondrej Pokorny wrote 6 lines
I just tested this on win32 (current Lazarus trunk)
Having checkboxes for boolean.
If the row in the OI is NOT selected, then doubleclick works (or maybe it does select, then change).
If the row in the OI is already selected, doubleclick does not work (it is 2 individual clicks, changing twice / back to original value)
For comboboxes (enum/not bool) it makes no different if they are selected or not. they always go to the next value on doubleclick.
Martin Frb wroteIf the row in the OI is NOT selected, then doubleclick works (or maybe it does select, then change).
Yes it is interpreted as 2 clicks.
FYI: you can change an unselected checkbox in OI by clicking the actual box once.
If the row in the OI is already selected, doubleclick does not work (it is 2 individual clicks, changing twice / back to original value)
It is consistent with the standard checkbox behavior. They work with a single click.
I wonder what kapibara's problem was.
Checkboxes never required a double-click.
Comboboxes still work with it.
???
Juha
Juha Manninen wroteI wonder what kapibara's problem was. Checkboxes never required a double-click. Comboboxes still work with it. ???
He probably had a very old Lazarus from the times when the OI displayed boolean values as true/false, without a checkbox (Laz 1.2 or so). Or he had unchecked the box "Use checkbox for boolean values" in "Tools" > "Environment" > "Object Inspector" of more recent versions. In these cases, a double-click is required to toggle the state (like in Delphi 7). If he installed a new version now, Laz1.8RC2 maybe, then he will be missing the old behavior because the new version comes up with checkboxes by default.
It works here. What OS/WS? What settings (checkboxes or comboboxes for bool values)?…
Lazarus version was a three weeks old trunk, GTK2 under Debian with CheckBoxes for boolean off. After updating to r55322 some moments ago, doubleclick toggles booleans just fine.
Before updating, the GTK2 ComboBox Style for booleans looked like csDropDownList. Now Style is changed to csDropDown just as in Windows. Will try remember to update more often, sorry for time wasted. =:-)
Roger
