Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Post Reply
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Post by Marcelo Via Giglio »

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: Select all

#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

 
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Post by Antonio Linares »

Marcelo,

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

Antonio Linares
www.fivetechsoft.com
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Post by Marcelo Via Giglio »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Post by Antonio Linares »

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
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Post by Marcelo Via Giglio »

Antonio,

muchas gracias por responder

saludos

Marcelo
Post Reply