Weird xBrowse Problem

Weird xBrowse Problem

Postby PeterHarmes » Thu Apr 01, 2010 8: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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Weird xBrowse Problem

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10627
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Weird xBrowse Problem

Postby PeterHarmes » 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!!
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Weird xBrowse Problem

Postby PeterHarmes » 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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: jmartial and 112 guests