Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Postby Marcelo Via Giglio » Thu Sep 09, 2010 3: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: Select all  Expand view

#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

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

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

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

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Postby Marcelo Via Giglio » Thu Sep 09, 2010 8: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
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Postby Antonio Linares » Mon Sep 13, 2010 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error xBrowse definicion nMarqueeStyle := MARQSTYLE_HI

Postby Marcelo Via Giglio » Tue Sep 14, 2010 4:29 pm

Antonio,

muchas gracias por responder

saludos

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


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 1 guest