Bug 160869 - Forms: Listboxes, set as "readonly", will be greyed out. Other controls, set "readonly", won't.
Summary: Forms: Listboxes, set as "readonly", will be greyed out. Other controls, set ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2024-04-30 12:31 UTC by Robert Großkopf
Modified: 2024-05-16 12:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Open the form and have a look at the listbox in the third column of controls. Shouldn't be greyed out. (15.34 KB, application/vnd.oasis.opendocument.database)
2024-04-30 12:31 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2024-04-30 12:31:14 UTC
Created attachment 193905 [details]
Open the form and have a look at the listbox in the third column of controls. Shouldn't be greyed out.

Open the attached database.
Open the form.
There are shown different columns of controls.
First column will show controls set to readonly → no, enabled → yes.
Second column will show controls set to readonly → no, enabled → no. All controls are greyed out (by the way: They aren't greyed out in tablecontrol, but this is another bug). 
Third column will show controls set to readonly → yes, enabled → yes. Controls aren't greyed out except listbox (by the way: Checkboxes and radiobuttons couldn't be set "readonly", so no possibility to show them not greyed out and don't allow to change data, but this is another bug).

Listboxes shouldn't be shown greyed out if set readonly. Behavior should be the same, as, for example, for comboboxes.

This behavior appears in all LO-versions, no regression I think.

Tested with
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2024-05-15 14:53:07 UTC
Reproduced in:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 658a212585c56540a17c41111e6829716d4ef4e3
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Same in 7.0.0.3
Comment 2 Stéphane Guillou (stragu) 2024-05-16 12:15:52 UTC
Following my bug 160881 comment 1, I think that the solution should be "don't offer the read-only option for listboxes" rather than "don't grey out read-only listboxes". That's because listboxes don't allow entering values by hand, and therefore a read-only state is not useful.

Copying UX/Design for opinion.
Comment 3 Robert Großkopf 2024-05-16 12:50:38 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Following my bug 160881 comment 1, I think that the solution should be
> "don't offer the read-only option for listboxes" rather than "don't grey out
> read-only listboxes". That's because listboxes don't allow entering values
> by hand, and therefore a read-only state is not useful.
> 
> Copying UX/Design for opinion.

Please don't set this as a solution: The content should be well readable in a read-only control. Read-only should only set "could not be choosen any new value" like it is for combo boxes.