Multiple Cell Selection

Multiple Cell Selection

Postby FranciscoA » Mon Dec 16, 2019 12:21 am

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.

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

Re: Multiple Cell Selection

Postby leandro » Mon Dec 16, 2019 1:47 pm

Francisco buenos días

testxbrw.prg

Code: Select all  Expand view  RUN


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 AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1682
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Multiple Cell Selection

Postby FranciscoA » Mon Dec 16, 2019 2:34 pm

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.

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

Re: Multiple Cell Selection

Postby FranciscoA » Tue Dec 17, 2019 12:02 am

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

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

Re: Multiple Cell Selection

Postby nageswaragunupudi » Wed Dec 18, 2019 8:27 am

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
nageswaragunupudi
 
Posts: 10681
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Multiple Cell Selection

Postby FranciscoA » Wed Dec 18, 2019 1:55 pm

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

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

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


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests