Getting items to fill a column

View: New views
3 Messages — Rating Filter:   Alert me  

Getting items to fill a column

by Jonathan Stott-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I've been following through the example app in the FXRuby book (which
has generally been very helpful!) and I'm now at the extending it
stage.

I'd like to get the images display at the centre of a column and have
a uniform width for all columns.  The centering I have fixed, but no
combinations of setting width and height options and LAYOUT_FILLs
seems to work to get columns to display at the same width, no matter
the width of the image within.

Regards
Jon
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Getting items to fill a column

by Lyle Johnson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On May 31, 2008, at 3:42 PM, Jonathan Stott wrote:

> I'd like to get the images display at the centre of a column and have
> a uniform width for all columns.  The centering I have fixed, but no
> combinations of setting width and height options and LAYOUT_FILLs
> seems to work to get columns to display at the same width, no matter
> the width of the image within.

Jonathan,

You're still using the matrix-style layout, right? Are you specifying  
LAYOUT_FILL_COLUMN (in addition to LAYOUT_FILL_X) for the widgets in  
the matrix? Take a look at the information about this in section 12.2  
of the book and see if that addresses your problem. If it doesn't, let  
me know and I'll take a closer look.

Hope this helps,

Lyle

---
"FXRuby: Create Lean and Mean GUIs with Ruby"
Now available from the Pragmatic Bookshelf!
http://www.pragprog.com/titles/fxruby





_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Getting items to fill a column

by Jonathan Stott-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, I'm still using the matrix layout.

LAYOUT_FILL_COLUMN and ROW almost did what I wanted (I missed them in
my read over, or didn't grab the significance).  A closer re-reading
of the chapter revealed the options I wanted to include as well.
PACK_UNIFORM_HEIGHT and WIDTH on the Matrix itself now gets it
displaying as I want.

Thank you,
Jon
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users
LightInTheBox - Buy quality products at wholesale price