newbie xrc LoadFrame question

David Hart google.groups.DavidHart at dfgh.net
Thu Oct 5 07:10:20 PDT 2006


Hi John,

> 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.

There are examples on wxForum. For example,
http://wxforum.shadonet.com/viewtopic.php?t=6554

> 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 (?).

Yes, when the gnomes were writing their toolkit they subsisted largely
on pizza, so it's not surprising that some crumbs got into the works ;)

Regards,

David







More information about the wx-users mailing list