[wxruby-users] xml.load_panel

Max Salov lists at ruby-forum.com
Tue Aug 26 09:21:33 EDT 2008


Hi, Time passes and new questions arise :)

If I load panel directly from xrc-file, everything is ok, but if I 
create a class

class NewPanel < Wx::Panel
  def initialize parent = nil
    super
    $xml.load_panel_subclass(self,parent,'PANEL')
  end
end

and load it using

@new_panel = NewPanel.new @splitter

panel content is not shown correctly, it appears only after resizing 
panel. self.refresh doesn't help. What can be done? Complete project is 
attached to post.

Max

Attachments:
http://www.ruby-forum.com/attachment/2613/test.zip

-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list