TGListTree: signal for the opening of a folder

Dear all,
Dear Bertrand,

I have a TGListTree and I implemented some kind of lazy loading of its content. Whenever a folder is opened, I add the children items to it.

My problem is that I need to know when a folder in the tree is opened by the user. I have used the DoubleClicked signal until now and it works great as long as the user doesn’t simply click on the + next to the folder icon…

Did I miss an obvious way of getting a signal for folders opening ?

Thanks in advance,

Hi Barth,

No, you’re right, there is no signal telling when a folder is open with the cross. But note that the cross is there only when the folder has already been populated (e.g. when it contains children)…

Cheers, Bertrand.

Hi Bertrand,

You are right that the cross does appear only when there are already children. I was actually adding some objects but not all. As a conclusion, there is no need to add the signal :slight_smile:

Thanks for your reply,