Reputation: 1
I'm working with Delphi 11 (Alexandria). In the project I'm currently working on I'm showing a grid with a TVirtualStringTree (the component is from the library VirtualTree for VCL 2024.02, by TurboPack).
The problem is that, it doesn't matter where I click, the only cells that can be focussed are those in the first column, while I want to be able to focus any cell by cliccking on it.
Does anyone have an idea of what may be the cause?
I've tryed changing the paramenters of the component, and looking for people with a similar issue, but nothing seems to be of help.
Upvotes: 0
Views: 35
Reputation: 1
VirtualStringTree's TreeOptions/MiscOptions/toEditable = True allows to edit tree's data. Yet TreeOptions/SelectionOptions/toExtendedFocus must be set to True. The 2nd column becomes accessible and editable in this case. If you want to have a readonly tree, you can include toReadOnly to TreeOptions.MiscOptions AFTER building the tree: VST.TreeOptions.MiscOptions := VST.TreeOptions.MiscOptions + [toReadOnly]; But don't forget to exclude this value BEFORE building the tree.
Upvotes: 0