<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[WD16] Select / Unselect the underlayingTreeview-Nodes with the checkmark of the parent node</title>
        <description> Hi,

this is a recursiv function to select/unselect a node and his children with the checkmark feature of the wd16 treeview.

Call the function in the treeview &amp;quot;whenever modified&amp;quot; event with the full path of the current node. I think that must be a built in function in future releases of WD.

---------------------------------------------------------------------------------------------------------------



PROCEDURE Treeview_click_auswerten(sNode is string=&amp;quot;&amp;quot;)

bStatus is boolean=TREE_Gesamtstruktur[sNode]..Checked
sChild, sChildPath is string

sChild=TreeGiveChild(TREE_Gesamtstruktur,sNode,tvFirst)

IF sChild=&amp;quot;&amp;quot; THEN
RESULT &amp;quot;&amp;quot;
ELSE
sChildPath=sNode+TAB+sChild
TREE_Gesamtstruktur[sChildPath]..Checked=bStatus
Treeview_click_auswerten(sChildPath)
END

WHILE sChild&amp;lt;&amp;gt;&amp;quot;&amp;quot;
sChild=TreeGiveChild(TREE_Gesamtstruktur,sNode,tvNext)
IF sChild=&amp;quot;&amp;quot; THEN
Treeview_click_auswerten(sChildPath)
ELSE
sChildPath=sNode+TAB+sChild
TREE_Gesamtstruktur[sChildPath]..Checked=bStatus
Treeview_click_auswerten(sChildPath)
END

END</description>
        <link>https://www.wxforum.info/read.php?27161,111298,111298#msg-111298</link>
        <lastBuildDate>Wed, 11 Nov 2026 13:14:35 +0100</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://www.wxforum.info/read.php?27161,111298,111298#msg-111298</guid>
            <title>[WD16] Select / Unselect the underlayingTreeview-Nodes with the checkmark of the parent node</title>
            <link>https://www.wxforum.info/read.php?27161,111298,111298#msg-111298</link>
            <description><![CDATA[ Hi,<br />
<br />
this is a recursiv function to select/unselect a node and his children with the checkmark feature of the wd16 treeview.<br />
<br />
Call the function in the treeview &quot;whenever modified&quot; event with the full path of the current node. I think that must be a built in function in future releases of WD.<br />
<br />
---------------------------------------------------------------------------------------------------------------<br />
<br />
<br />
<br />
PROCEDURE Treeview_click_auswerten(sNode is string=&quot;&quot;)<br />
<br />
bStatus is boolean=TREE_Gesamtstruktur[sNode]..Checked<br />
sChild, sChildPath is string<br />
<br />
sChild=TreeGiveChild(TREE_Gesamtstruktur,sNode,tvFirst)<br />
<br />
IF sChild=&quot;&quot; THEN<br />
RESULT &quot;&quot;<br />
ELSE<br />
sChildPath=sNode+TAB+sChild<br />
TREE_Gesamtstruktur[sChildPath]..Checked=bStatus<br />
Treeview_click_auswerten(sChildPath)<br />
END<br />
<br />
WHILE sChild&lt;&gt;&quot;&quot;<br />
sChild=TreeGiveChild(TREE_Gesamtstruktur,sNode,tvNext)<br />
IF sChild=&quot;&quot; THEN<br />
Treeview_click_auswerten(sChildPath)<br />
ELSE<br />
sChildPath=sNode+TAB+sChild<br />
TREE_Gesamtstruktur[sChildPath]..Checked=bStatus<br />
Treeview_click_auswerten(sChildPath)<br />
END<br />
<br />
END]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Solutions</category>
            <pubDate>Mon, 19 Sep 2011 20:44:25 +0200</pubDate>
        </item>
    </channel>
</rss>
