Veto-ing events wx.aui.EVT_AUI_RENDER, wx.EVT_SIZE - wxPython ?

Vlastimil Brom wrote:

Hi all,
I would like to ask about the possibility of "vetoing" the events wx.aui.EVT_AUI_RENDER and wx.EVT_SIZE in wxPython.
I'd like to use aui-panes in my application, but it seems, that it needs some tweaking due to the behaviour mentioned in http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mmp:71855 - in principle it allows a kind of destructive resizing outside of the available space
While it seems, that it can't be simply fixed in this component ( https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1870131&group_id=9863 ), I would appreciate some workaround for it - fortunately a working approach has been posted ( http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msn:71855:amejnebgkdadciojplpm and the following) - but there are still some issues in some "cornercases".

I think, it should be possible, to Veto() the wx.aui.EVT_AUI_RENDER event in given circumstances, but it doesn't seem to work (regardless of SetCanVeto()), or am I missing something? - whatever, in this case the aui.perspective can be saved and restored to achive this.
The most serious problem with the code above occurs while resizing the whole window containig the aui panes - if some pane becomes smaller than the given limit - a RuntimeError error occurs ( http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:71993:amejnebgkdadciojplpm )

I thought about vetoing the size event independently from the aui, but without success - is Veto supported by wx.EVT_SIZE or are there any other possible solutions to this problem?
(I use Win XPh, Python 2.5.2, wxPython 2.8.7.1 <http://2.8.7.1> if it matters.)

many thanks in advance,
   Vlastimil Brom

Hi Vlasta,

I don't see this problem in my code. I use a SetMinSize-command in my application to avoid a too small window, but even if I remove that command I don't get any runtime errors (only a very small window). But I only have an aui-pane on the top level; I don't have any aui-panes as children.

Perhaps if you post an (non-)working example?

BTW, I do have an aui-notebook inside my aui-pane. The drawing of that one got screwed up now and then. But a few hours ago Robin Dunn posted something about using the wx.FULL_REPAINT_ON_RESIZE in the style of the parent pane. That seemed to do the trick for my application- thanks Robin!

Max

ยทยทยท