FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.
Posted: Tue Apr 15, 2008 03:45 AM

I tested with FWH8.02. Is this a bug?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.
Posted: Tue Apr 15, 2008 05:56 AM
This is a bug even in 8.04.

I tried this small correction in XBrowse.Prg

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
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: xBrowse AutoSort won't work if xBrw:lAllowColSwapping = .f.
Posted: Wed May 19, 2010 01: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

Continue the discussion