[fxruby-users] elementary problem with LAYOUT_FILL
William B. Parsons
wbparsons at cshore.com
Mon Aug 31 17:50:39 EDT 2009
On Sat, 29 Aug 2009 14:58:26 -0700 (PDT)
dave L <dglnz at yahoo.com> wrote:
> I haven't used this control but think it's a non visible control - I.E
> it is something you don't visually see but can access when used within
> a window.
But it is visible - since I passed a FRAME_SUNKEN attribute to the FXPacker
you can see a small sunken square in the upper left-hand corner. Of course,
in the real application I'm trying to build, the problem is that the widgets
that get packed don't fill the entire top-level window as I would like.
> --- On Sun, 30/8/09, William B. Parsons <wbparsons at cshore.com> wrote:
>
> From: William B. Parsons <wbparsons at cshore.com>
> Subject: [fxruby-users] elementary problem with LAYOUT_FILL
> To: fxruby-users at rubyforge.org
> Received: Sunday, 30 August, 2009, 9:18 AM
>
> 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
> _______________________________________________
> fxruby-users mailing list
> fxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/fxruby-users
>
>
>
>
--
William B. Parsons <wbparsons at cshore.com>
More information about the fxruby-users
mailing list