xbrowse y multiselección

xbrowse y multiselección

Postby horacio » Wed Oct 25, 2017 8:52 pm

Colegas, querría saber cuales son las variables de clase ( si existen ) que pintan los renglones seleccionados y también como puedo implementar las teclas de repaginar para seleccionar. Muchísimas gracias.

Saludos
horacio
 
Posts: 1358
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Re: xbrowse y multiselección

Postby Rick Lipkin » Wed Oct 25, 2017 9:30 pm

Horacio

Consider this code .. first you have to use this MarqueeStyle :
Code: Select all  Expand view

 oLbx:nMarqueeStyle := MARQSTYLE_HIGHLROWMS  // multi-row select
 


Then to process the Hi-lighted rows you can use a For\Next loop and do whatever :
Code: Select all  Expand view


//----------------------------
Static Func _TranAll( oLbx )

Local aCols,i

aCols := oLbx:aSelected

For i = 1 to Len(aCols)

   oLbx:BookMark := aCols[i]
   _DoWhatEver()

Next

Return(nil)
 


Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2606
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin para Harbour/xHarbour

Who is online

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