[Lazarus] Treeview question
mailinglists at collins-email.co.uk
Sun Jan 23 00:15:23 CET 2022
I'm porting an application I started (but never finished) in Pyside to
Lazarus. This question is only about cosmetics as Treeview works as I
want it to.
In Pyside I could set a space between nodes by setting the node text as
"" and disabling that node so it never gets selection, e.g.
self.tvSpace001 = QTreeWidgetItem(self.leftTreeWidget)
In Lazarus there seems to be no disabled property for nodes, so when
transversing a node with text "" with the keyboard, it will move onto
that empty node but not highlight it, when I would prefer it instead
moved onto the next or previous node and highlight it.
I could write a workaround, storing the last node index, working out if
the user has moved up or down, checking if the text is "" and
highlighting the previous or next node as required, BUT I just wondered
if anyone has a more simple, more elegant solution please?
It's only to show visual definition between groups of parents and
childs and doesn't actually affect how the application works.
Thanks for your help.
More information about the lazarus