Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-06

True/False in Object Inspector

6 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny
to kapibara
kapibara wrote
It 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

Reply by email

Martin Frb
to Ondrej Pokorny
Ondrej Pokorny wrote 6 lines
On 11.06.2017 8:05, kapibara via Lazarus wrote: > It 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)?

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.

Reply by email

Juha Manninen
to Martin Frb
Martin Frb wrote
If 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

Reply by email

Werner Pamler
to Juha Manninen
Juha Manninen wrote
I 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.

Reply by email

kapibara
to Ondrej Pokorny: 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

Ondrej Pokorny wrote 8 lines
On 11.06.2017 8:05, kapibara via Lazarus wrote: > It 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

Reply by email