Hi,
I'm compiling a previous version of my app on wxWidgets-2.7.1 that used to use the standalone wxAUI-0.92 library and worked fine. Now that I'm using wxWidgets-2.7.1's version of wxAUI, I'm getting error messages saying that wxAUI:SetFrame is deprecated. Seems like I found somewhere where I read that I should use SetManagedFrame instead?
Also, unhappily, my window sizing has also stopped working by just moving from wxWidgets-2.6.3 with wxAUI-0.92 to wxWidgets-2.7.1 with built-in wxAUI.
Anyone have any suggestions?
Thanks for any info.
--Spicerun
My binutils=2.17, gcc = 4.1.1, running under Gentoo with Gnome-2.16.
Kirix Support Forums
SetFrame deprecated?
2 posts
• Page 1 of 1
Hi there,
Yes, SetFrame() is deprecated. We decided to allow all windows to be managed by wxAuiManager-- basically any wxWindow* pointer. We decided then that the name SetFrame() didn't make much sense anymore. So, yes, the new name is SetManagedWindow(). It does the same thing.
Relating to your sizing problem: If you have an MDI window, the problem was fixed in wxWidgets CVS last night. If you want to fix it right now with 2.7.1, then just handle your frame's OnSize() and leave the handler blank.
If your not using MDI, I don't yet know what's causing your problem. I'd be happy to take a close look.
All the best,
Ben
Yes, SetFrame() is deprecated. We decided to allow all windows to be managed by wxAuiManager-- basically any wxWindow* pointer. We decided then that the name SetFrame() didn't make much sense anymore. So, yes, the new name is SetManagedWindow(). It does the same thing.
Relating to your sizing problem: If you have an MDI window, the problem was fixed in wxWidgets CVS last night. If you want to fix it right now with 2.7.1, then just handle your frame's OnSize() and leave the handler blank.
If your not using MDI, I don't yet know what's causing your problem. I'd be happy to take a close look.
All the best,
Ben
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback