FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour ListBox de array multiselecci贸n
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
ListBox de array multiselecci贸n
Posted: 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.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
ListBox de array multiselecci贸n
Posted: Fri Sep 22, 2006 01: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:={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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
ListBox/Browse de array con multiselecci贸n
Posted: Sat Sep 23, 2006 09: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:={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.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 592
Joined: Tue Mar 14, 2006 11:34 PM
ListBox de array multiselecci贸n
Posted: Sun Sep 24, 2006 01: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

Continue the discussion