Hi,
Using database Recno() is the selected row in xbrowse.
How can I detect a selected row in xbrowse array.
Thanks,
oLbx4 := TXBrowse():New( oFld:aDialogs[1] )
oLbx4:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbx4:nColDividerStyle := LINESTYLE_BLACK
oLbx4:nRowDividerStyle := LINESTYLE_BLACK
oLbx4:nRecSelColor = 15512898
oLbx4:bClrSelFocus = { || { 16777215, 15512898 } }
oLbx4:bClrSel = { || { 16777215, 15512898 } }
oLbx4:SetArray( aBRCOLOR ) // Array
oLbx4:aCols[ 1 ]:cHeader = Padr("No.", 3)
oLbx4:aCols[ 2 ]:cHeader = Padr("Text", 19)
oLbx4:lHScroll := .F.
oLbx4:lVScroll := .F.
oLbx4:lFooter := .T.
oLbx4:bLClicked := { | nRow, nCol | ROW_POS := oLbx4:nRowSel }
oLbx4:aCols[ 2 ]:AddResource("Black")
oLbx4:aCols[ 2 ]:AddResource("White")
oLbx4:aCols[ 2 ]:AddResource("Blue")
oLbx4:aCols[ 2 ]:AddResource("Green")
oLbx4:aCols[ 2 ]:AddResource("Red")
oLbx4:aCols[ 2 ]:AddResource("Yellow")
oLbx4:aCols[ 2 ]:AddResource("Magenta")
oLbx4:aCols[ 2 ]:bBmpData := {|| oLbx4:nArrayAt }
oLbx4:aCols[ 2 ]:bStrData := {|| oLbx4:aRow[2] }
oLbx4:nArrayAt := ROW_POS
oLbx4:nRowSel := ROW_POS
oLbx4:nFooterHeight := 15
oLbx4:CreateFromResource( 130 )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 81 guests