I've been playing with the new wx.aui package a lot recently (using the
latest prebuild from Sep 09), and so far I'm really impressed with it.
However, I don't seem to be able to find a way to veto a dropping
location from wxPython. Studying the sources, it seems that a minmal
solution for this would be to make the OnFloatingPaneMoveStart,
OnFloatingPaneMoving, and OnFloatingPaneMoved methods overridable from
wxPython. My question now is whether this is a reasonable approach, or
if somebody else is looking into implementing this feature some other
way. I would even try to give this a go, if there is a chance that my
patches would be accepted.
Thanks,
Oliver
···
--
--------------------------------------------------------------------
F. Oliver Gathmann, Ph.D.
Director IT Unit
Cenix BioScience GmbH
Tatzberg 47 phone: +49 (351) 4173-136
D-01307 Dresden, Germany fax: +49 (351) 4173-109
I've been playing with the new wx.aui package a lot recently (using the
latest prebuild from Sep 09), and so far I'm really impressed with it.
However, I don't seem to be able to find a way to veto a dropping
location from wxPython. Studying the sources, it seems that a minmal
solution for this would be to make the OnFloatingPaneMoveStart,
OnFloatingPaneMoving, and OnFloatingPaneMoved methods overridable from
wxPython.
Those methods are not 'virtual' in the C++ code so they wouldn't be overridable in a derived class. I'm not sure if it is intended that they be overridable or not. I get the feeling that it is not expected that classes would be derived from wxFrameManager but I may be wrong.
My question now is whether this is a reasonable approach, or
if somebody else is looking into implementing this feature some other
way.
Bring it up on wx-dev, as the folks that work on the AUI guts are reading that list. There may be something that one of them already has in mind to do.
I would even try to give this a go, if there is a chance that my
patches would be accepted.
I expect that it would be. There has been lots of input and community involvement with wxAUI so far, and very little friction to getting new features incorporated.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I've been playing with the new wx.aui package a lot recently (using the
latest prebuild from Sep 09), and so far I'm really impressed with it.
However, I don't seem to be able to find a way to veto a dropping
location from wxPython. Studying the sources, it seems that a minmal
solution for this would be to make the OnFloatingPaneMoveStart,
OnFloatingPaneMoving, and OnFloatingPaneMoved methods overridable from
wxPython.
Those methods are not 'virtual' in the C++ code so they wouldn't be
overridable in a derived class. I'm not sure if it is intended that
they be overridable or not. I get the feeling that it is not expected
that classes would be derived from wxFrameManager but I may be wrong.
Ah, sorry, I overlooked that. The approach I was suggesting would indeed
be unusual, to say the least. Personally, I think it would make much
more sense to extend the wxFrameManagerEvent class such that it also
reports floating pane move events (don't know how feasible that is, though).
My question now is whether this is a reasonable approach, or
if somebody else is looking into implementing this feature some other
way.
Bring it up on wx-dev, as the folks that work on the AUI guts are
reading that list. There may be something that one of them already
has in mind to do.
Thanks, I will do that.
I would even try to give this a go, if there is a chance that my
patches would be accepted.
I expect that it would be. There has been lots of input and community
involvement with wxAUI so far, and very little friction to getting new
features incorporated.
This sounds encouraging. Thanks again.
Oliver
···
--
--------------------------------------------------------------------
F. Oliver Gathmann, Ph.D.
Director IT Unit
Cenix BioScience GmbH
Tatzberg 47 phone: +49 (351) 4173-136
D-01307 Dresden, Germany fax: +49 (351) 4173-109