[fxruby-users] FXTable: how to prevent a particular column from being resized?

Philippe Lang philippe.lang at attiksystem.ch
Tue Oct 9 02:15:32 EDT 2007

Jeroen van der Zijp wrote:

> On Monday 08 October 2007 06:51, Philippe Lang wrote:
>> Hi again,
>> I'm using FXTables with a few hidden columns, which have 0 width.
>> Is there a way to prevent the user from resizing these columns, which
>> only have an internal meaning?
> You can disable resizing of rows and/or columns.  However, its an
> all-or-nothing thing; you can't turn resizing off for a single
> row/column only.  
> I can suggest a sneaky trick, maybe:- as the cursor moves, enable or
> disable the resizability based on the column its hovering over.  I
> admit its not super elegant but it might work...  

I found a very useful workaround: put the zero-width columns at the
extreme left of the FXTable. They cannot be resized there!


More information about the fxruby-users mailing list