https://bugs.documentfoundation.org/show_bug.cgi?id=166811
Bug ID: 166811
Summary: On Windows, tree view elements with indetermined state
("on demand") have non-native expand icons
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 201064
--> https://bugs.documentfoundation.org/attachment.cgi?id=201064&action=edit
APSO dialog showing the issue
The screenshot has a tree view with all four element states, screenshotted on
Windows, GTK3, and gen.
* "InsertHello" is a leaf element, without any "expand"/"collapse" icon.
* "InsertText" is an expanded element, showing the normal "collapse" icon,
defined by Windows theme.
* "LibreLogo" is a collapsed element, showing the normal "expand" icon, defined
by Windows theme.
* "HelloWorld" is an element, which has "CHILDREN_ON_DEMAND" flag, i.e. "we
don't know yet, if there are children of the element, or this is a leaf".
The "HelloWorld" element shows a triangle on Windows, which is "alien" to the
other, normal "collapse"/"expand" icons. It is actually drawn by "!bNativeOK"
code in SvTreeListBox::PaintEntry1, the fallback used for controls that can't
be drawn natively. The triangle shape itself looks similar to GTK or gen icons
used for the task.
On gen and GTK, the "CHILDREN_ON_DEMAND" elements are indistinguishable from
ordinary collapsed entries. On Windows, TVP_GLYPH has only two states
(GLPS_CLOSED, GLPS_OPENED) [1], which shows that it uses the same idea. We
should treat "CHILDREN_ON_DEMAND" as ordinary collapsed for the purposes of
drawing the icon.
[1] https://learn.microsoft.com/en-us/windows/win32/controls/parts-and-states
--
You are receiving this mail because:
You are the assignee for the bug.