Hi,
this is possible through some style management. The component managing one tree is ROWWOKRPLACEFUNCTIONTREE - and this is internally used.
In the default style.xml there are three style variatns:
Code:
<tag name="rowworkplacefunctiontree" variant="default">
<set attribute="foreground" value="#000000"/>
<set attribute="background" value="#FFFFFF"/>
</tag>
<!-- ...used in ROWWORKPLACEFUNCTIONS -->
<tag name="t:rowworkplacefunctiontree" variant="WP_WORKPLACEFUNCTIONTREE">
<set attribute="foreground" value="#000000"/>
<set attribute="background" value="#FFFFFF"/>
</tag>
<tag name="t:rowworkplacefunctiontree" variant="WP_WORKPLACEFUNCTIONTREE_BIG">
<set attribute="foreground" value="#000000"/>
<set attribute="background" value="#FFFFFF"/>
<set attribute="treenodestylevariant" value="ccbig"/>
<set attribute="treenoderowheight" value="30"/>
<set attribute="borderwidth" value="0"/>
<set attribute="borderheight" value="1"/>
<set attribute="bordercolor" value="#00000008"/>
<set attribute="gridstylevariant" value="WP_FUNCTIONTREE_BIG"/>
</tag>
So, override them in your style definition (your style.xml) and also set the attribute "singleclickexecute" to "true". Your style then should be:
Code:
<tag name="t:rowworkplacefunctiontree" variant="default" extendsparenttag="true">
<set attribute="singleclickexecute" value="true"/>
</tag>
<tag name="t:rowworkplacefunctiontree" variant="WP_WORKPLACEFUNCTIONTREE" extendsparenttag="true">
<set attribute="singleclickexecute" value="true"/>
</tag>
<tag name="t:rowworkplacefunctiontree" variant="WP_WORKPLACEFUNCTIONTREE_BIG" extendsparenttag="true">
<set attribute="singleclickexecute" value="true"/>
</tag>
Regards, Björn