Re: Notice a few topics about Drag'n'Drop Anyone got a code to work ??

new topic     » goto parent     » topic index » view thread      » older message » newer message

I just tried Drag'n'Drop, and in Eu3 at any rate you must be careful; params[2] may not be a sequence. The code snippet below works OK in, as I say, Eu 3, whereas the previous example struggled.

procedure Window1_onDragAndDrop (integer self, integer event, sequence params)--params is ( int id, seq FileName ) 
 
	if sequence (params[2]) then 
		if length (params[2]) > 0 then 
			setText(filename, params[2])			 
		end if 
	end if 
 
end procedure 
setHandler( Window1, w32HDragAndDrop, routine_id("Window1_onDragAndDrop")) 

I hope this is useful ....

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu