Strange behavior of xBrowse

Strange behavior of xBrowse

Postby Natter » Sat Nov 25, 2023 7: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
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Strange behavior of xBrowse

Postby Antonio Linares » Sun Nov 26, 2023 5:09 am

Dear Yuri,

Please provide a small PRG to reproduce it ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Strange behavior of xBrowse

Postby Natter » Sun Nov 26, 2023 6: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
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Strange behavior of xBrowse

Postby nageswaragunupudi » Sun Nov 26, 2023 7:01 am

Ok.
Before that
just do this oneline test and still you have problem, we will advise more.
Code: Select all  Expand view
XBROWSER aData

Do you still face the same problem?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Strange behavior of xBrowse

Postby Natter » Sun Nov 26, 2023 8:30 am

Code: Select all  Expand view
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
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Strange behavior of xBrowse

Postby Natter » Sun Nov 26, 2023 1: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
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: Strange behavior of xBrowse

Postby Antonio Linares » Sun Nov 26, 2023 1:16 pm

very good!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Strange behavior of xBrowse

Postby nageswaragunupudi » Sun Nov 26, 2023 2: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: Select all  Expand view
oBrw:lHeader := .F.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Strange behavior of xBrowse

Postby Natter » Sun Nov 26, 2023 2:38 pm

Thank you, Rao!
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests