In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Multi-Column Listbox Questions

Xailer English public forum
Responder
Simon White
Mensajes: 30
Registrado: Dom Mar 08, 2009 3:24 am

Multi-Column Listbox Questions

Mensaje por Simon White »

Hi
I cannot find any documentation that tells me how to enter items in to the
aItems array to create a multicolumn list box. If try a number of different
delimiters without success. Also can you have columns of different widths?
Thanks,
Simon
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Multi-Column Listbox Questions

Mensaje por jlalin »

Simon,
sorry for the late anwser, I been away from my computer these last days.
> I cannot find any documentation that tells me how to enter items in to the
> aItems array to create a multicolumn list box. If try a number of different
> delimiters without success. Also can you have columns of different widths?
You need to set the :lMultiColumn property to true and :nColsWidth to the
width of the column.
The items are entered as in a standar ListBox, but you only will see the
columns if ListBox is not tall enough to show all of them. For example: add
ten items to your listbox and change its height with the mouse to be shorter.
Regards,
José Lalí­n
Simon White
Mensajes: 30
Registrado: Dom Mar 08, 2009 3:24 am

Multi-Column Listbox Questions

Mensaje por Simon White »

Hi
I did that but I am still not clear on how I ensure some values appear in
Column 1 and other values appear in column 2.
Simon
=?ISO-8859-1?Q?Jos=E9_Lal=EDn?= <dezac_quitaesto_@corevia.com> wrote:
>Simon,
>
>sorry for the late anwser, I been away from my computer these last days.
>
>> I cannot find any documentation that tells me how to enter items in to
=
>the
>> aItems array to create a multicolumn list box. If try a number of diff=
>erent
>> delimiters without success. Also can you have columns of different wid=
>ths?
>
>You need to set the :lMultiColumn property to true and :nColsWidth to the=
>=20
>width of the column.
>
>The items are entered as in a standar ListBox, but you only will see the
=
>
>columns if ListBox is not tall enough to show all of them. For example:
a=
>dd=20
>ten items to your listbox and change its height with the mouse to be shor=
>ter.
>
>Regards,
>Jos=E9 Lal=EDn
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

Multi-Column Listbox Questions

Mensaje por jlalin »

Simon,
> I did that but I am still not clear on how I ensure some values appear in
> Column 1 and other values appear in column 2.
IMO, the listbox's multicolumn mode is not a real mode since it depends on
the height of the control.
If you want to show data in real multicolumn mode give a try to
TArrayBrowse wich is far better.
Saludos,
José Lalí­n
Responder