Raise window while in drag-and-drop

Robin Dunn wrote:

W.H.Offenbach wrote:
> Hi all,
>
> As a first wxPython project I'm trying to create an app that has some
> windows. I managed to do drag-and-drop between the windows. Now I would
> like to raise the target window when the mouse enters it. Can anyone
> give me a clue on how to do this while drag-and-drop is still going on?

You can override GiveFeedback in your wxDropSource class and check the
mouse position and raise your windows if it is over one of them. Or
your wxDropTarget in the destination windows could do it in an OnEnter
method. Finally, if you are on Windows then letting the mouse hover
over the window's taskbar icon will cause it to be raised.

Thanx, Robin.
I was trying the second form (wxDropTarget). It turned out I tried to raise the Panel, not the Frame. Stupid :frowning:

Werner