Page 1 of 1

Dynamicly add/remove DCTREE items

Posted: Mon Aug 07, 2017 1:43 am
by jdsoft
Hello,
I start to use DCTREEROOT and DCTREEITEM.
I managed updating the icon/caption at runtime.
How can i insert new DCTREEITEM or remove an existing DCTREEITEM in the middle of the tree at runtime?
Regards,
Jack Duijf

Re: Dynamicly add/remove DCTREE items

Posted: Mon Aug 07, 2017 6:51 am
by rdonnay
\exp20\source\dchelp\_dcxhelp.prg contains a context-help system that supports both inserting and deleting tree items from a right click menu.

Have you looked at that source code?

Also run \exp20\samples\helptest.exe to see how it works.