Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

tree_proc API: add node's prop "state image index" #5536

Closed Alexey-T closed 1 month ago

Alexey-T commented 1 month ago

Lazarus allows to set 'state image index' per each node. if >= 0, it shows 2nd icon. here I set 'state image index' to blue icon for 2 nodes (one node also has normal red icon):

Screenshot from 2024-05-26 19-27-03

and, Lazarus supports 'selected image index' per each node. this imageindex is used (for 'normal' icon) when item is selected. add it too. IMO this 'selected index' is not needed in API.