emotta Posted February 5, 2015 Report Share Posted February 5, 2015 Tem alguma maneira para arrastar algum arquivo do windows explorer para a janela do sistema e o sistema identificar qual é o nome do arquivo que está sendo arrastado? Algo semelhante a isso Quote Link to comment Share on other sites More sharing options...
sambomb Posted February 5, 2015 Report Share Posted February 5, 2015 http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_dragqueryfiles Quote Link to comment Share on other sites More sharing options...
emotta Posted February 5, 2015 Author Report Share Posted February 5, 2015 vlw Sambo mas qual evento que é disparado quando se arrasta? http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_dragqueryfiles Quote Link to comment Share on other sites More sharing options...
emotta Posted February 5, 2015 Author Report Share Posted February 5, 2015 Sambo, vlw... Pesquisando encontrei algumas coisas e montei este exemplo que faz o que preciso... Fica aqui se alguem precisar... vlwww #include "fivewin.ch" Function Teste() Local oDlg DEFINE DIALOG oDlg FROM 0,0 TO 350,600 TITLE "teste" PIXEL ACTIVATE DIALOG oDlg ON INIT DropFiles( oDlg ) Return FUNCTION DropFiles( oDlg ) DragAcceptFiles( oDlg:hWnd, .T. ) oDlg:bDropFiles := { | nRow, nCol, aFiles | MSgInfo( aFiles[1] ) } RETURN (.T.) Quote Link to comment Share on other sites More sharing options...
kapiaba Posted February 5, 2015 Report Share Posted February 5, 2015 Mais exemplos: Pasta de C:\FWH..\samples 08/07/2013 19:46 956 testdrop.prg 08/07/2013 19:46 1.164 testdrp2.prg 08/07/2013 19:46 1.324 testdrp3.prg 08/07/2013 19:46 1.191 testdrp4.prg 08/07/2013 19:46 2.027 testdrp5.prg 08/07/2013 19:46 1.656 testdrp6.prg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.