Page 1 of 1

DCBROWSE subclass and SORT

Posted: Sun Oct 23, 2016 1:21 am
by Wolfgang Ciriack
Hello Roger,
can you please check why the DCBROWSECOL SORT ... LEFTBUTTON has no effect when using
a DCBROWSE with SUBCLASS ?
Sorting in Header works only with right mouse button.

Re: DCBROWSE subclass and SORT

Posted: Mon Oct 24, 2016 8:37 am
by rdonnay
I would have to look at your subclass code.

You may be overriding the method that tests for the left button.

This is the code in _DCXBROW.PRG that enables left button usage:

Line 2836:

Code: Select all

IF Valtype(::sortBlock) = 'B'
  IF xOptions[6]
    ::heading:lbdown := _HeaderDown( oParent, self )
  ENDIF
  ::heading:rbdown := _HeaderDown( oParent, self )
ELSEIF ::noResize
ENDIF