ListBox de array multiselección

ListBox de array multiselección

Postby FiveWiDi » Fri Sep 22, 2006 11:59 am

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.
FiveWiDi
 
Posts: 1088
Joined: Mon Oct 10, 2005 2:38 pm

Postby James Bott » Fri Sep 22, 2006 1:24 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

ListBox/Browse de array con multiselección

Postby FiveWiDi » Sat Sep 23, 2006 9:27 pm

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.
FiveWiDi
 
Posts: 1088
Joined: Mon Oct 10, 2005 2:38 pm

Postby Raymundo Islas M. » Sun Sep 24, 2006 1:19 am

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
FWH 10.6 + xHarbour + Borland 582
User avatar
Raymundo Islas M.
 
Posts: 592
Joined: Tue Mar 14, 2006 11:34 pm
Location: Acapulco, Gro. MEXICO


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 119 guests