PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → drag and drop
drag and drop
Iniciado por tse, 14,ene. 2004 11:42 - 1 respuesta
Publicado el 14,enero 2004 - 11:42
In the windev 7.5 help they speak about 2 examples.
Puzzle
Drag and drop.
The first I can find but not the second.
I need an example with tables.
I searched the archive on drag and drop but could not find an example.
Can anyone give me an example or tel me where I can find the Windev Drag and Drop example.
Regards Frans.
Publicado el 14,enero 2004 - 13:11
In the initialization of the main window:

ExplorerAccept(True, "") // --- accept filedrop from explorer
Event("RetrieveFile", "*.", 563) // --- call procedure RetrieveFile when
file is dropped on app

Global procedure:

numFile is int = ExporerRetrieve(_EVE.wParam)
sFileName is string
// Retrieving all the files
IF numFile > 1 THEN
Error("Select only one file")
ReturnToCapture()
END

sFileName = ExporerRetrieve(_EVE.wparam, 1)