FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Strange behavior of xBrowse
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Strange behavior of xBrowse
Posted: Sat Nov 25, 2023 07:00 PM

Hi,

There is a xBbrowse with an array. When clicking on a particular cell, this cell receives focus with a long delay.

I could not determine the reasons for this. Tell me what method works when click on a cell ?

FWH 2307

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 05:09 AM

Dear Yuri,

Please provide a small PRG to reproduce it ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 06:45 AM
Unfortunately I can't make an example. There's a huge amount of content there.
xBbrowse always works fine.In this case, it's my mistake.
I just wanted to find the reason by looking (via Override) at the work of the xBrowse methods.
I am interested in the method that is executed when a cell is clicked
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 07:01 AM
Ok.
Before that
just do this oneline test and still you have problem, we will advise more.
Code (fw): Select all Collapse
XBROWSER aData
Do you still face the same problem?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 08:30 AM
Code (fw): Select all Collapse
XBROWSER aData
Works fine (all 4000 thousand lines)
But this is understandable, because the browser creates its own modal window.
I have 2 browsers sitting on the same modal window. 1st works well, 2nd is weird
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 01:12 PM

Found.

I needed the second brows without column headers. Accordingly, I wrote oBrw[2]:nHeaderHeight:=0.

This was the cause of the problems. If you write oBrw[2]:nHeaderHeight:=1, then everything is fine

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 01:16 PM

very good!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 02:21 PM
I needed the second brows without column headers. Accordingly, I wrote oBrw[2]:nHeaderHeight:=0.
Only you could find the problem. Without seeing the source code we could not have guessed it.

Well, if you do not want Headers, please use this code:
Code (fw): Select all Collapse
oBrw:lHeader := .F.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Strange behavior of xBrowse
Posted: Sun Nov 26, 2023 02:38 PM

Thank you, Rao!

Continue the discussion