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

Actually, I think I have code that allows me to drag 'n' drop onto a control. I'm sorry, I've forgotten the source, but I would bet it was Derek.

I will look for it on Monday if there's still a need...

Okay, I sneaked a peek. Apparently, the following does it for me for an EditText control:

procedure txt_FileName_onDragAndDrop (integer self, integer event, sequence params)--params is ( int id, seq FileName ) 
	if length(params[2]) > 0 then 
		setText( txt_FileName, params[2] ) 
	end if 
end procedure 
setHandler( txt_FileName, w32HDragAndDrop, routine_id("txt_FileName_onDragAndDrop")) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu