http://www.gambas-es.org/viewtopic.php?f=1&t=125&p=485#p485
-----------------------------------
JaM0N
14 Octubre 2009, 06:25

Drag &amp; Drop
-----------------------------------
Hola, soy nuevo en esto y estoy inetentando hacer algo simple pero bonito para comenzar... Estoy modificando el Reproductor de sonido que viene como ejemplo y quiero agregarle la opción de Drop...
el problema es que no se muy bien como hacerlo (hace tiempo no programo otra cosa que javascript o php :( ) y la documentación que encuentro por todos lados solo dice

[code linenumbers=false syntax=gambas]
EVENT Drop ( )

'This event is raised when a drag is dropped in the control. 

PROPERTY Drop AS Boolean

'Returns or sets if a control accepts drops. 

SUB Drag ( Data AS Variant [ , Format AS String ] )

'Starts a drag & drop process.

'    * Data is the data to be dragged. It can be a String or an Image.
'    * If Data is a text, then you can specify in Format the MIME type of this text. For example, "text/html". 

EVENT Drag ( )

'This event is raised when the mouse enters the control during a drag & drop process.

'Event Cancellation
'If you stop the event with STOP EVENT, then the drop will be rejected.

EVENT DragMove ( )

'This event is raised while the mouse moves inside the control during a drag & drop process.

'Event Cancellation
'If you stop the event with STOP EVENT, you indicate that the part of the control where the mouse cursor is does not accept the drop.  [/code]

Y no tengo ni idea como usarlo. Estaría muy ineteresante que junto a esa información pusieran al menos 5 lineas de código a modo de ejemplo para gente como yo  :oops: 

Bueno, saludos


