News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Management Window Drag & Drop

Started by Pecan, February 16, 2006, 05:42:52 PM

Previous topic - Next topic

Pecan

Quote from: thomas on February 28, 2006, 02:23:17 AM
this->AnyDataOrMemberOfBaseClass     good
SetDropTarget is a member of a base class.

Ok, thanks. I'll give it a test.

pecan

Pecan

#16
Quote from: Pecan on February 28, 2006, 01:15:38 AM
I believe I've gotten to the bottom of the "wxFNB stole the drop target" problem.

Well... it seems I'm all wet, full of smoke, all bulls..t

Tracing through the wxFlatNotebook::SetDropTarget() call shows that
wxFNB is working fine. It uses its own window pointer; and the call destroys
no other drop target.

I'm stumped as to how the main.cpp drop target is being trumped by
wxFNB's SetDropTarget() call. But it is!

thanks
pecan

Pecan

Is it the case that a wxPanel client area trumps (overrides)
a wxFrame client area when wxWidgets has to chose a
focus for an operation such as dragNdrop??

Is this why wxFNB (a wxPanel) can steal a DropTarget
from main.cpp's mainFrame (a wxFrame)?

thanks
pecan