ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Collapsible toolbar icons and others in panels?

zipperdilderich
19 Dec 2008 09:25:03 GMT
19 Dec 2008 09:25:03 GMT

Hi,

I got a panel which is collapisble and need some additional custom icons in the panel. Therefore I introduced a Caption to the Panel and now the collapsible button is not there anymore. Any idea on how to get the button back?

Next question is: the collapsible button is in a file called "tool-btn.gif" with lots of other icons. I'd like to use some of these buttons like the one with "+" and "-". Again, any idea on how to accomplish that?

Thanks in advance and sorry for that - I'm still a beginner working on my first project with ZK :-)
Zipperdilderich

terrytornadoTop Contributor
19 Dec 2008 12:21:45 GMT
19 Dec 2008 12:21:45 GMT

@zipperdilderich

to question 1.

do not use caption in the panel tag.
you must append a <panelchildren>

   <panel title="myPanelTitle" border="normal" collapsible="true">
     <panelchildren>

       <grid fixedlayout="true" style="border:0px">
         <columns>
           <column width="20%"/>
           <column width="80%"/>
         </columns>

           <rows>
            <row> yourIcon 
                 <textbox width="99%"/>
            </row>
            <row> yourIcon 
                <textbox width="99%"/>
            </row>

         </rows>

       </grid>
     </panelchildren>
   </panel>

Use the zkDesigner for Eclipse.

regards
Stephan

- Help to prevent the global warming by writing cool software -