Hello Cristobal,
I can not find out how items are added to: oER:aSelection.
Can you please help me.
Best regards,
Otto
//------------------------------------------------------------------------------
FUNCTION ToggleItemSelection( nItem, nArea )
LOCAL nSelSearch := ASCAN( oER:aSelection, {| aVal | aVal[1] = nArea .AND. aVal[2] = nItem } )
IF nSelSearch = 0
AADD( oER:aSelection, { nArea, nItem } )
ELSE
oER:aSelection := ADel( oER:aSelection, nSelSearch, .T. )
ENDIF
MarkItem( oER:aItems[nArea,nItem]:hWnd )
nAktItem := 0
RETURN (.T.)
//------------------------------------------------------------------------------
FUNCTION InvertSelection( lCurArea )
LOCAL i, y, nCurArea
DEFAULT lCurArea := .F.
FOR y := 1 TO IIF( lCurArea, 1, Len( oER:aWnd ) )
IF oER:aWnd[y] <> NIL
nCurArea := IIF( lCurArea, oER:nAktArea, y )
FOR i := 1 TO LEN( oER:aItems[ nCurArea ] )
IF oER:aItems[ nCurArea, i ] <> NIL
ToggleItemSelection( i, nCurArea )
ENDIF
NEXT
ENDIF
NEXT
RETURN (.T.)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: nageswaragunupudi, Willi Quintana and 69 guests