For Antonio & NagesWarao Lines 2674/2675 of Xbrowse class
I propose this solution for displaying the border in the presence of vertical scrolling
if ::lDrawBorder
// ::Box( 0, 0, ::nHeight - 1, ::nWidth - 1, IfNil( ::nClrBorder, ::hColPen ) )
::Box( 0, 0, ::nHeight - 1, ::BrwWidth(), IfNil( ::nClrBorder, ::hColPen ) ) endif
the same must be made in the presence of Horizontal scrolling but I not found the part where draw the box when there ::lHscroll is true
better can be
oBrw:lVScroll := .t.
oBrw:lhScroll := .t.
- Code: Select all Expand view RUN
if ::lDrawBorder
If ::lVScroll
::Box( 0, 0, ::nHeight - 1, ::BrwWidth(), IfNil( ::nClrBorder, ::hColPen ) )
Endif
If ::lHScroll
::Box( 0, 0, ::BrwHeight(), ::nWidth - 1, IfNil( ::nClrBorder, ::hColPen ) )
endif
If ::lVScroll .and. ::lHScroll
::Box( 0, 0, ::BrwHeight(), ::BrwWidth(), IfNil( ::nClrBorder, ::hColPen ) )
endif
endif
it run also with oBrw:lfooter := .t.
My Advicethe best modification is to draw the border after the horizontal and vertical scroll and not before as I have solved, certainly you would know how to do it
i.e. the border should be drawn around the whole control as it was a long time ago (xbrowse Ortiz de Zuniga)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com