wxAuiManager, bug in AddPane
Friedrich Haase
Friedrich_Haase at compuserve.com
Mon Apr 2 15:52:25 PDT 2007
Moin Mr. Dunn,
Using Name() (not SetName() ?!?) in
wxAuiManager.AddPane(pWindow,
wxAuiPaneInfo().Name(strWindowName)....);
indeed sets the name for the pane.
But what for? A caption might be translated, but a name need not. As far as
I can see, there is no reason in wxAui for a name for the pane different
from the window name except if the name hasn't got a name or for (stupid)
multiple usage.
IMHO a strange design. Could you please explain?
Friedrich Haase
----- Original Message -----
From: "Robin Dunn" <robin at alldunn.com>
To: <wx-users at lists.wxwidgets.org>
Sent: Monday, April 02, 2007 11:52 PM
Subject: Re: wxAuiManager, bug in AddPane
>
> Friedrich Haase wrote:
>> Moin all,
>>
>> I think there is a bug in wxAuiManager.
>>
>> Symptome:
>> wxAuiPaneInfo& GetPane(wxWindow* window)
>>
>> wxAuiPaneInfo& GetPane(const wxString& name)
>>
>> behave different. The first function will find the window as expected.
>> But the second function using the window name will not.
>
> It's not the window name, but the name of the pane that is being searched
> for. This is by design. If you want to use GetPane(name) then you should
> give names to your panes.
>
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
More information about the wx-users
mailing list