FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Weird xBrowse Problem
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Weird xBrowse Problem
Posted: Thu Apr 01, 2010 08:28 AM

Hi,

I'm getting a weird problem with an xBrowse which is causing my app to freeze

My app opens an mdi window, within this i have 2 (or more) windows that just browse a database. The xbrowses have MARQSTYLE_HIGHLROWMS style and i can drag and drop details from one browse to another - this just changes the date of the record(s) and updates the browse (the browses are filtered by date). The process I do to make it freeze is:

Drag one record from browse a to browse b
hold down the shift key and click back on browse a
app freezes

if i do the following:

Drag one record from browse a to browse b
click back on browse a
hold down shift to select records
app works fine

if i dont drag a record but have focus on browse b, then hold shift and click on browse a, the app works fine.

Can anyone give me any ideas where to start to look, it sounds as if its a problem with the drop routine!!

Thanks in advance

Pete

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Weird xBrowse Problem
Posted: Thu Apr 01, 2010 10:13 AM

I have tried this with \fwh\samples\testxbr3.prg. Set bDragBegin in one MDI Child and bDropOver in another MDI Child. It is working fine for me.

Can you post a small sample to reproduce the problem?

Regards



G. N. Rao.

Hyderabad, India
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Weird xBrowse Problem
Posted: Thu Apr 01, 2010 10:44 AM

I've just tested testxbr3 and it works fine - one thing i've noticed is that when you drag, the focus remains on the browse/window that you are dragging from - i will see if this has something to do with it!!

Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Weird xBrowse Problem
Posted: Thu Apr 01, 2010 11:59 AM

I think i've fixed it!!

I pass the browse/window (oSend) class to the drop function

At the bottom of my drop function, i have to do the following:

oSend:oDlg:SetFocus()
oSend:oBrw:SetFocus()
oSend:oBrw:Select(1)

Thanks for your help

Pete

Continue the discussion