[wxruby-users] xml.load_panel

Alex Fenton alex at pressure.to
Tue Aug 26 02:07:56 EDT 2008


Max Salov wrote:
> Complete project (rb-script, wxFormBuilder project, generated xrc and 
> screenshot) are attached to post.
>   
I don't think this is very hard to fix - you currently have an 
intermediate panel as the right-hand-side child of your upper splitter 
window. I made your DUMMYPANEL the direct second child of the splitter 
window and then it all works fine. You were attaching your replacement 
window in the wrong place.

Generally a garbled layout with an element in the top left means that 
something is being attached to thr wrong parent, or added to the wrong 
sizer, or missing a sizer.add call. I've made this mistake a lot of 
times doing wxRuby programming (including earlier today...) and they're 
always fixed by looking closely at the window hierarchy.
> 'GC.disable' is present to avoid random crashes described in 
> http://www.ruby-forum.com/topic/142975
>   
OK, this should be fixed with the upcoming 1.9.8 release. Sorry for the 
inconvenience.

> OS Windows XP SP2
> ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-mswin32]
> wxRuby 1.9.7 installed from gem
>   

a


More information about the wxruby-users mailing list