i am new to XUL, so this is probably just a "newbie"-question.
I have an xul-form, containing a multi-column-listbox. Each single
column of the listbox must be resizable by the user. I have already
searched the XUL-Reference, but could not find a solution / info how
to make cols resizable.
The source of the form is:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/
there.is.only.xul">
<tabbox flex="1">
<tabs>
<tab label="Cstics"/>
</tabs>
<tabpanels>
<tabpanel id="CsticsPanel">
<hbox flex="1" style="overflow: auto;">
<listbox id="CsticsList" flex="1" >
<listhead>
<listheader crop="none" label="Id"/>
<listheader crop="none" label="Value 1"/>
<listheader crop="none" label="Value 2"/>
</listhead>
<listcols>
<listcol/>
<listcol/>
<listcol/>
</listcols>
<listitem crop="none">
<listcell crop="none" label="Reference TestReference
TestReference TestReference TestReference TestReference TestReference
Test"/>
<listcell crop="none" label="Reference TestReference
TestReference TestReference TestReference TestReference TestReference
Test"/>
<listcell crop="none" label="Reference TestReference
TestReference TestReference TestReference TestReference TestReference
Test"/>
</listitem>
</listbox>
</hbox>
</tabpanel>
</tabpanels>
</tabbox>
</window>
Anybody has an idea? Thanks very much in advance, Andreas
Hi Andreas,
I believe you want to use a <tree> instead of <listbox>. Use <splitter>
elements with the "tree-splitter" class. The documentation has an
example: https://developer.mozilla.org/en/XUL/splitter#s-tree-splitter
Good luck!
Jay