Hello ,
bChange in xBrowse is executed after a skip , is there a codeblock to use before a skip ?
Regards Maurizio
#include 'fivewin.ch'
#include 'xbrowse.ch'
function main()
local oWnd, oBrw
use customer
DEFINE WINDOW oWnd
@ 0,0 XBROWSE oBrw ;
COLUMNS 'First', 'Last', 'Age' ;
OF oWnd ;
ALIAS 'CUSTOMER' ;
LINES CELL
WITH OBJECT oBrw
:bChange := {|| Msginfo("After") }
:bOnRowLeave := {||Msginfo("Before")}
END
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:lColDividerComplete := .T.
oBrw:lRecordSelector := .F.
oBrw:nStretchCol = STRETCHCOL_LAST
oBrw:CreateFromCode()
oWnd:oClient := oBrw
ACTIVATE WINDOW oWnd
return nil
METHOD GoDown( nDown ) CLASS TXBrowse
.
.
.
.
if bBefore != NIL
Eval( bBefore)
endif
for n := 1 to nDown
if ::Skip( 1 ) == 1 //Eval( ::bSkip, 1 ) == 1
if ::nRowSel < nLines
.
.
.
.
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Enrico Maria Giordano and 90 guests