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)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2024-04-30 12:31 UTC by Robert Großkopf
Modified: 2024-07-03 06:28 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
Example for editable and enabled state (26.55 KB, image/png)
2024-05-17 13:53 UTC, Heiko Tietze
Details
Screenshot shows how the form looks on Linux/KDE/LO24.2.3.2 (83.27 KB, image/png)
2024-05-17 14:36 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.
Comment 4 Heiko Tietze 2024-05-17 13:53:10 UTC
Created attachment 194175 [details]
Example for editable and enabled state

ComboBoxes typically become look like listboxes when not editable depending on OS/DE with a special appearance. Enabled or not is indicated by muted colors. The example shows how Qt/QML show controls.

We should introduce this beveled appearance for listboxes and readonly comboboxes.
Comment 5 Robert Großkopf 2024-05-17 14:36:55 UTC
Created attachment 194176 [details]
Screenshot shows how the form looks on Linux/KDE/LO24.2.3.2