[wxruby-users] Xrc Q ; using mulitple layouts(Frames , dialogs , panels)
Alex Fenton
alex at pressure.to
Wed Nov 19 18:50:52 EST 2008
Jn Jn wrote:
> I am developing a simple GUI with wxruby. I am using wxFormbuilder to
> get the xrc file.
> I need a simple Frame with menu item file and submenu open,save and
> exit. And when I click on open(submenu) it should launch an
> panel(dialog) which has filepicker.
>
> I believe I would be able to develop a dailog also under the same
> project in wxFormbuilder(which it allowed without any warnings or
> errors) ,when I run xrcise I get 2 classes under same xrc file. but when
> try to load it when I click on open the applicaiton crashes.
>
Could you please post the error message that you get when you click on
'open'? It's hard to know what's happening otherwise. Also please say
what platform (eg Win XP) and version of wxRuby you're using.
Lastly, please show the code you've written to open the initial window
from Ruby.
> Can someone point to any sample program which uses multiple layouts
> with xrc. What is the sequence of loading the objects .
>
There shouldn't be any problem having any number of different dialogs
and frames in a single project. I have one (using DialogBlocks) which
has at least 10 separate top-level windows.
alex
More information about the wxruby-users
mailing list