|
From: Daan L. <daa...@xs...> - 2004-05-21 08:40:45
|
> Hmm, doesn't crash on me. But I went ahead and added the images, but
> nothing changed. Note that I said try with and without the "veto",
> because I'm not sure it should really even be "veto". In the C++
> version, you have to explicitly allow the dragging, because the default
> is not to drag, as evidenced in the wxWidgets sample program:
No, it should be "allow", as signified by the documentation of
TreeCtrl events :-)
I tried it and it works on my machine -- ie. I have:
onTreeEvent t event
= case event of
TreeBeginDrag item point allow
-> putStrLn "dragging..."
other
-> propagateEvent
Note that I removed the propagateEvent in the first case, as I
have handled it now.
I have a windows-XP system with wxWidgets 2.4.2 and ghc 6.2.1.
If you tell me your system, I can maybe test it better on Monday,
perhaps there is an OS dependency somewhere.
(I have a MacOSX panther and Fedora core1 machine available).
I hope this helps,
-- Daan.
|