Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resizable Listbox columns of multi-col-listbox?

63 views
Skip to first unread message

A.Eternach

unread,
Nov 30, 2009, 7:11:13 AM11/30/09
to
Hi guys,

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

Jason Oster

unread,
Nov 30, 2009, 11:02:14 AM11/30/09
to
On 11/30/2009 05:11 AM, A.Eternach wrote:
> Hi guys,
>
> 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:
> *snip*

>
> 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

0 new messages