[fxruby-users] elementary problem with LAYOUT_FILL

William B. Parsons wbparsons at cshore.com
Sat Aug 29 17:18:16 EDT 2009


I'm sure this must be simple but I can't seem to figure out how to fill the
main window with widgets.  The following bare-bones test app illustrates my
problem:
----------------------
#!/usr/bin/env ruby
require 'fox16'
include Fox

class TopLevelWindow < FXMainWindow
   def initialize(app)
      super(app, 'Test Application', :width => 200, :height => 300)
      FXPacker.new(self, FRAME_SUNKEN, :opts => LAYOUT_FILL)
   end
   def create
      super
      show(PLACEMENT_SCREEN)
   end
end

FXApp.new do |app|
   TopLevelWindow.new(app)
   app.create
   app.run
end
----------------------
Why doesn't the FXPacker fill the top-level window?

-- 
Will


More information about the fxruby-users mailing list