Multiple Cell Selection

Post Reply
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Multiple Cell Selection

Post by FranciscoA »

Cuenta xBrowse con la caracteristica de poder seleccionar multiples celdas?

Does xBrowse have the feature of being able to select multiple cells?

Gracias.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Re: Multiple Cell Selection

Post by leandro »

Francisco buenos días

testxbrw.prg

Code: Select all


STATIC FUNCTION MultiSelect( oWnd )

   local oChild, oBrw

   DEFINE WINDOW oChild TITLE "MultiSelect browse" MDICHILD OF oWnd

   oBrw := TXBrowse():New( oWnd )
   oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWMS //Aqui

   oBrw:SetRDD()
   oBrw:CreateFromCode()

   oChild:oClient := oBrw

   ACTIVATE WINDOW oChild ON INIT oBrw:SetFocus()

RETURN NIL

 
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Multiple Cell Selection

Post by FranciscoA »

Leandro, gracias por responder.
Lo que posteaste es la multiseleccion de registros ( aSelected ).

Lo que pretendo es poder seleccionar varias celdas, a la vez.
Por ejemplo al hacer CTRL + RCLICK sobre cualquier celda, que agregue a un array ( aSelectedCells ) los valores de las celdas seleccionadas y, además, que enmarque en color rojo esas celdas.

Algo asi:
Image

Mi pregunta es si xbrowse ofrece esta prestación, para no re-inventar la rueda.

Saludos, y gracias nuevamente.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Multiple Cell Selection

Post by FranciscoA »

Nobody here?
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Multiple Cell Selection

Post by nageswaragunupudi »

XBrowse does not natively provide any feature to select multiple cells.
We need to write our own logic.
Regards

G. N. Rao.
Hyderabad, India
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Multiple Cell Selection

Post by FranciscoA »

Rao:
Thanks. I'll write my own function.

Gracias. Escribiré mi propia funcion.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
Post Reply