Page 1 of 1

ListBox de array multiselección

PostPosted: Fri Sep 22, 2006 11:59 am
by FiveWiDi
Hola a todos

Alguién me puede decir de que manera se puede disponer de un ListBox/Browse de una array multiselección y que tenga varias columnas y además pueda seleccionar varias filas de ella?

Saludos y gracias
Carlos G.

PostPosted: Fri Sep 22, 2006 1:24 pm
by James Bott
Aquí está un viejo mensaje:


From: "Gino Siviero" <kec@axess.com>
To: <jbott@compuserve.com>
Subject: Re: Highliting multiple lines on a TWBrowse
Date: Monday, July 16, 2001 11:00 AM


Hello James,

I tried it with arrays... And it works !!!

Then, I thought, if I can do it with arrays, I should be able to do it with a file in a TWBrowse. I did it !!!

By adding a new field to my database, I update that field when I select the record. When the field is updated, I also created a oLbx:nClrPane:={IIF( field = .T., nColor1, nColor2)}... Works even better... I can now go to the database and process all records with this field at .T.

I thank You for the inspiration (and your solution !!!)

Regards,

Gino Siviero

kec@axess.com

ListBox/Browse de array con multiselección

PostPosted: Sat Sep 23, 2006 9:27 pm
by FiveWiDi
James Bott wrote:Aquí está un viejo mensaje:


From: "Gino Siviero" <kec@axess.com>
To: <jbott@compuserve.com>
Subject: Re: Highliting multiple lines on a TWBrowse
Date: Monday, July 16, 2001 11:00 AM


Hello James,

I tried it with arrays... And it works !!!

Then, I thought, if I can do it with arrays, I should be able to do it with a file in a TWBrowse. I did it !!!

By adding a new field to my database, I update that field when I select the record. When the field is updated, I also created a oLbx:nClrPane:={IIF( field = .T., nColor1, nColor2)}... Works even better... I can now go to the database and process all records with this field at .T.

I thank You for the inspiration (and your solution !!!)

Regards,

Gino Siviero

kec@axess.com


Gracias James, empiezo a investigar la clase TWbrowse.

Saludos
Carlos G.

PostPosted: Sun Sep 24, 2006 1:19 am
by Raymundo Islas M.
Hola Carlos

El principio en si es de agregar una columna al browse ya sea con valor logico o numerico, para manejarlo como "flag" que fue seleccionado o no, en lo visual, hay varias maneras de mostrarlo, ya sea como dice James, cambiando el color del texto del registro o agregando otra columna mas con algun bmp.

En mis apps he manejado ambas, y funcionan muy bien usando un metodo muy parecido al mencionado por James.

En caso que lo requieras, mandame un mensaje a mi correo para enviarte un par de ejemplos.

SALUDOS