xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.

xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.

Postby hua » Tue Apr 15, 2008 3:45 am

I tested with FWH8.02. Is this a bug?
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Postby nageswaragunupudi » Tue Apr 15, 2008 5:56 am

This is a bug even in 8.04.

I tried this small correction in XBrowse.Prg

Code: Select all  Expand view
METHOD HeaderLButtonDown( nMRow, nMCol, nFlags ) CLASS TXBrwColumn

   if ::oBrw:nCaptured == 0 //.and. ::oBrw:lAllowColSwapping  // commented out
      ::oBrw:oCapCol   := Self
      ::oBrw:nCaptured := 1
      ::oBrw:Capture()
      ::PaintHeader( 2, nil, ::oBrw:nHeaderHeight - 3, .t. )
   endif

return nil

Now everything seems to be working fine. But I am not yet sure this does not have any other side effects. Or there is another better way to do this
Regards

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

Re: xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.

Postby hua » Wed May 19, 2010 1:58 pm

Seems to still exist in FWH10.4. Can it be fixed in 10.5 as per Rao's suggestion?
Thanks
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests