1. LV + drag 'n drop (WIN32LIB 57.6)

Hi!

I'm trying to use a drag'n drop on a ListView control:

onDragAndDrop[ListView]=routine_id("ListView_onDragAndDrop")

But it does not seem to ever detect it. A trace in my D'nD routine is never
activated.
Now if i replace the LV control by a TextEdit control the event is triggered
(the trace is activated) but the control id that is passed to the event handler
is 0.

If instead of the onDragAndDrop[] i use the setHandler() technique, then it
works fine for the TextEdit control but it still the same - i.e. no triggering -
for the ListView control.

BTW i have also noticed that the parameter FileName that is supposed to be
passed to the event handler is actually something like {0,
"c:\path\filename.ext"}. I wonder what the first element is for.

Pardon me if this subject has already been debated and explained here, but i've
not been able to find anything about it in the forum.

Have a nice week end everybody.

Henri Goffin

new topic     » topic index » view message » categorize

2. Re: LV + drag 'n drop (WIN32LIB 57.6)

> I'm trying to use a drag'n drop on a ListView control:

Checking the win32lib source, the ListView class is defined with:
classStyleEx[ ListView ] = WS_EX_CLIENTEDGE...
...with no mention of WS_EX_ACCEPTFILES.
Not much help, ... but there's the difficulty.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu