FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI
Posted: Thu Sep 09, 2010 03:18 AM
Holas,

en el ultimo FWH, si de define un xBrowse con nMarqueeStyle := MARQSTYLE_HIGHLROWMS
los metodos de navegacion goDown, goUp, goTop..... no funcionan bien, tan solo una silueta se desplaza y no asi todo el pintado de la linea actual, mas claro el ejemplo al oprimir "Next"

Code (fw): Select all Collapse
#include "fivewin.ch"
#include "xbrowse.ch"

function Main()

   local aData, oDlg, oBrw


   aData := { { 1,2,3,4 }, ;
              { 1,2,3,4 }, ;
              { 1,2,3,4 }, ; 
              { 1,2,3,4 } }


   DEFINE DIALOG oDlg SIZE 600,300 PIXEL TITLE 'XBROWSE RAGGED ARRAYS'

   @ 10,10 XBROWSE oBrw ;
      ARRAY aData ;
      SIZE 180,100 PIXEL OF oDlg ;
      AUTOCOLS

   oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWMS

   oBrw:CreateFromCode()

   @ 130,10 BUTTON "Next" OF oDlg ACTION oBrw:goDown() PIXEL
  
   ACTIVATE DIALOG oDlg CENTERED

return nil
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI
Posted: Thu Sep 09, 2010 10:42 AM

Marcelo,

Vamos a revisarlo y te respondemos lo antes posible, gracias :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI
Posted: Thu Sep 09, 2010 08:56 PM

Antonio,

siendo que soy nuevo en xBrowse, viendo el codigo fuente la opcion MARQSTYLE_HIGHLROWMS se utiliza cuando se trabaja con Multi-Seleccion, de alli que puede ser el comportamiento el cual yo derivo es un error, la verdad no se si lo sea, pero lo que me interesa de esta opcion es que el cursor deja un espacio a cada lado y no pita hasta el extremo de la fila seleccionada, cuestion de gusto de visualizacion :-).

Uds. definiran si es un error o no

saludos y gracias por el interes

saludos

Marcelo

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI
Posted: Mon Sep 13, 2010 09:07 AM
Marcelo,

Según Rao, nuestro gurú del xbrowse, no es un error sino un comportamiento normal de ese modo. Te copio su comentario literal:


There is no Bug. It is the standard behavior in multi-selection mode.

You please compile and see the behavior.

XBrowse paints the selected row(s) in the highlighted color.

When the user navigates with arrow keys up / down / top / bottom, the eariler row(s) get deselected and the new row gets selected and is shown in highlight.

Shift-Down or Up arrows stretch / shrink the selection and the selected rows are painted in HL color.

Mouse-click deselects the previous selection and selects the clicked row,
Shift Mouseclick selects all rows between previously selected rown to the current clicked row.
Ctrl-click toggles selection of the clicked row.

Now, if the user navigates with right scroll bar or with mousewheel, the existing selection remains selected and shown in HL color, while the new row is shown in border. When the user decides he can Left click to select the new row and deselect the previous selection or he can Shift-click to select all rows from pevious selection to the clicked row.

This is the consistent behavior of xbrowse all the time which is really very convenient and intuitive from the user's point of view.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI
Posted: Tue Sep 14, 2010 04:29 PM

Antonio,

muchas gracias por responder

saludos

Marcelo

Continue the discussion