[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Allow single click in workplace  XML
Forum Index -> Development
Author Message
rchiluano

Power User

Joined: 28/12/2017 07:21:54
Messages: 79
Offline

Hi captain,

How do we allow to single click a page from workplace?
As of now, we need to double click a page in order to display it.

Regards,
Ryan
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

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

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team