FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Extraño comportamiento en xBrowse
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Extraño comportamiento en xBrowse
Posted: Tue Feb 15, 2011 11:36 PM
Holas,

tengo un comportamiento extraño con xBrowse
Code (fw): Select all Collapse
#include "fivewin.ch"
#include "xbrowse.ch"

function Main()

   local oWnd, oBrw, oDbf

   use customer
   
   define window ownd //from 1,1 to 20,80
   
   @ 0,0 xbrowse oBrw of oWnd size 20,20 alias 'customer'
     
   oBrw:CreateFromCode()
   
   oWnd:oClient := oBrw
   
   customer -> ( DBGOBOTTOM() )

   activate window oWnd on init customer -> ( DBGOBOTTOM() )

   use

return nil


si compilan este codigo en el directorio de samples de fivewin, veran que al crearse la aplicacion se muestra un solo registro, pero al mover el mouse sobre el xBrowse y salir del mismo, existe un refrescamiento automatico del mismo.

Peores cosas ocurren cuando tienes filtros de ADS activos y sacas el cursor del mouse del xbrowse automaticamente se cambia en registro actual del xbrowse, esto ultimo no lo tengo en un ejemplo vere si lo puedo reproducir.

Creo que este es un bug, alguna idea??

Lo probe con FW 10.12 + xH

saludos

Marcelo
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Extraño comportamiento en xBrowse
Posted: Wed Feb 16, 2011 07:16 AM
Instead of
Code (fw): Select all Collapse
ACTIVATE WINDOW oWnd ON INIT customer -> ( DBGOBOTTOM() )


Try
Code (fw): Select all Collapse
ACTIVATE WINDOW oWnd ON INIT oBrw:GoBottom()


Regards
Anser
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Extraño comportamiento en xBrowse
Posted: Wed Feb 16, 2011 01:39 PM

Hello Anser,

thanks for response, maybe in the sample your solution go ok, but when I use the same technique, in the first time the xbrowse show half of the rows and when I move the mouse inside and then outside the xbrowse, it show all the rows. The problem is worse when I apply a ADS filter, when the mouse go outside, the current record change, sorry I will try to do a simple sample.

What I want to know is what method run when the mouse go outside the xbrowse.

If you add customer -> ( DbSetFilter( {|| LEFT(Last,2) = "Ke" } ) ) in the previous sample without gobottom(), you will see that the xbrowse change when you go in and out of them.

Regards

Marcelo

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Extraño comportamiento en xBrowse
Posted: Thu Feb 17, 2011 08:27 AM
Please use
Code (fw): Select all Collapse
ACTIVATE WINDOW ON INIT oBrw:Refresh()
Regards



G. N. Rao.

Hyderabad, India
Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM
Re: Extraño comportamiento en xBrowse
Posted: Thu Feb 17, 2011 08:56 AM
nageswaragunupudi wrote:Please use
Code (fw): Select all Collapse
ACTIVATE WINDOW ON INIT oBrw:Refresh()


Prueba:

Code (fw): Select all Collapse
ACTIVATE WINDOW ON INIT oBrw:Refresh()
SysRrefresh()

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Continue the discussion