newbie xrc LoadFrame question
John Allman
allmanj at cp.dias.ie
Tue Oct 3 05:41:14 PDT 2006
Hi all,
I've been looking at wxWidgets and it really seems an excellent project.
In particular i'm liking ability to seperate layout and functionality
with resource files.
I've been looking around and every example i can see is manually setting
up the main frame for the application. Ok - it might be loading the menu
from a resource file but i'd like it to load the entire frame
configuration from a resource file.
There appears to be a wxXmlResource::Get()->LoadFrame function which i'm
thinking must be the correct one to use, but i've tried everything i can
think of and i'm getting nowhere. If i get it to compile at all, the
program runs but doesn't display anything. I tried explicitly setting
the size of the frame in the resource file in case that was it but it
didn't change anything. I've tried various different things and none
have been successful. My current effort give me a:
Gtk-CRITICAL **: gtk_window_set_icon_list: assertion `GTK_IS_WINDOW
(window)' failed
message. A previous effort mentioned something about pizza (?). I have
been able to successfully use resource files for dialogs and even the
menus of a frame so i imagine it's not that i've failed to include or link.
I'm quite confused and can't find good documentation on how to use this
function or a working example anywhere. If anyone could show me how it
should be used (assuming i've got the right idea) i'd greatly appreciate it.
Currently compiling using gcc with wxwidgets-2.6 on linux (ubuntu amd64)
but i'd assume this shouldn't be a platform issue.
If you need any further information or even a small example of what i'm
trying to do, i'll be happy to supply!
I'm not on the mailing list so please cc me in your replies.
Thanks,
John
More information about the wx-users
mailing list