The question is: is it possible during drop of one or more files
select an element from listbox?
Thanks in advance
Marco
#include "FiveWin.ch"
FUNCTION Main()
LOCAL oWnd
LOCAL oBrw
LOCAL aItem := {"one", "two", "three", "four" }
DEFINE WINDOW oWnd FROM 100 , 100 TO 205 , 205 PIXEL
@ 1 , 1 LISTBOX oBrw ITEMS aItem OF oWnd SIZE 200 , 200 PIXEL
ACTIVATE WINDOW oWnd ON DROPFILES SENDMAIL( nRow, nCol, aFiles, aItem )
return nil
FUNCTION SENDMAIL( nRow, nCol, aFiles, aItem )
LOCAL nPos := 1
// nPos := ????????
? nRow, nCol, LEN( aFiles )
? "Element is " , aItem[nPos]
RETURN NIL