Hi Just started with WxRuby after using Fox. Very impressed by the easy binary install and I''m already liking the native look and feel on MSW. Thanks! I''m trying to create an app with a MDI Parent Frame and a full-height (docked) side panel with various controls in it. The MDIParentFrame doesn''t work properly if I put it inside another frame with a sizer, so I''d appreciate some tips on a good way to do this. On the WXWidgets mailing list, I saw this recommended: http://cvs.osafoundation.org/index.cgi/osaf/chandler/wxpython/wxPython/demo/MDISashDemo.py?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup It''s an example for how to get exactly this layout using WxPython. However, it uses SashWindowLayout, which isn''t yet implemented in WxRuby - is there some other class I can use to simulate this? TIA alex
alex fenton wrote:> Just started with WxRuby after using Fox. Very impressed by the easy > binary install and I''m already liking the native look and feel on MSW. > Thanks!Thank you.> I''m trying to create an app with a MDI Parent Frame and a full-height > (docked) side panel with various controls in it. The MDIParentFrame > doesn''t work properly if I put it inside another frame with a sizer, so > I''d appreciate some tips on a good way to do this.Right. Normal frames shouldn''t go inside other frames. By the way, since MDI seems to be a popular topic right now, I should mention that the Linux (GTK) implementation of MDI in wxRuby is to use tabs to simulate MDI children. So you don''t actually get the overlapping multiple-window look that you get under MS Windows.> It''s an example for how to get exactly this layout using WxPython. > However, it uses SashWindowLayout, which isn''t yet implemented in WxRuby > - is there some other class I can use to simulate this?Hmm. Not that I can think of. You may need to wait for sash support in wxRuby (probably at least a month away), or add that support yourself. It is not clear right now whether we will be doing a 0.4 release of the existing code base, or if our next release will be swig-based. Once we are swig-based, adding support for new classes becomes *much* easier. Sorry I don''t have better news for you. Kevin
Kevin Smith wrote:> By the way, since MDI seems to be a popular topic right now, I should > mention that the Linux (GTK) implementation of MDI in wxRuby is to use > tabs to simulate MDI children. So you don''t actually get the overlapping > multiple-window look that you get under MS Windows.That''s interesting; I''ll try my app on my Linux box at work and see how it looks.>> It''s an example for how to get exactly this layout using WxPython. >> However, it uses SashWindowLayout, which isn''t yet implemented in >> WxRuby - is there some other class I can use to simulate this. > > Hmm. Not that I can think of. You may need to wait for sash support in > wxRuby (probably at least a month away), or add that support yourself.That''s OK. Sticking the "side panel" in a MDIChild and making it ''stay on top'' is good enough for me for the time being.> It is not clear right now whether we will be doing a 0.4 release of the > existing code base, or if our next release will be swig-based. Once we > are swig-based, adding support for new classes becomes *much* easier.I read some of that discussion on the archives. I can''t code C for toffee, but I''ve still been able to SWIG in the past to build wrappers. A swig-based release might mean I''d be able to add the support myself, which I wouldn''t otherwise be able to do.> Sorry I don''t have better news for you.It''s definitely not enough to rain on my picnic ''_'' Alex> > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > >