Author Topic: Management Window Drag & Drop  (Read 22405 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: Management Window Drag & Drop
« Reply #15 on: February 28, 2006, 02:37:27 am »
this->AnyDataOrMemberOfBaseClass     good
SetDropTarget is a member of a base class.

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

pecan

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: Management Window Drag & Drop
« Reply #16 on: February 28, 2006, 05:45:08 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
« Last Edit: February 28, 2006, 05:46:44 am by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: Management Window Drag & Drop
« Reply #17 on: March 01, 2006, 01:41:17 pm »
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