# FOX widget layout

**URL:** <https://www.ruby-forum.com/t/fox-widget-layout/73318>\
**Category:** Ruby\
**Created:** [February 25, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/fox-widget-layout/73318 "2006-02-25T23:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [February 25, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/fox-widget-layout/73318/1 "2006-02-25T23:54:13Z")

</div>

Does FOX have a layout manager that can layout widgets in rows and  
columns AND allow a widget to span more than one row and/or column?  
Tk can do this. In Java Swing I do this with GridBagLayout. FOX has  
the layout FXMatrix, but I didn’t see a way to span rows and columns.

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [February 26, 2006, 10:04am UTC](https://www.ruby-forum.com/t/fox-widget-layout/73318/2 "2006-02-26T10:04:05Z")

</div>

On 2/25/06, Mark V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Does FOX have a layout manager that can layout widgets in rows and  
> columns AND allow a widget to span more than one row and/or column?  
> Tk can do this. In Java Swing I do this with GridBagLayout. FOX has  
> the layout FXMatrix, but I didn’t see a way to span rows and columns.

afaik, there is no such layout.  
FXTable can span cells, but the cells can only display text and icons.  
no  
possibility to link widgets in.

however it is possible to write your own layout algorithm using the  
LAYOUT\_EXPLICIT setting and letting the algorithm manage the  
widgets x/y/width/height attributes. if you happen to do this please  
share  
the code with us ^^.

hth,  
– henon
