[fxruby-users] iconPosition in table

Joel VanderWerf vjoel at PATH.Berkeley.EDU
Wed Sep 22 18:59:45 EDT 2004

I'm having trouble getting an icon to appear to the left of the text in 
a cell. Fox example, in the table.rb example, I changed ABOVE to LEFT:

     @table.getItem(6, 6).icon = penguinicon
     @table.getItem(6, 6).iconPosition = FXTableItem::LEFT
     @table.getItem(6, 6).justify = 0    # centered text

but the icon and text are superimposed. Works fine with ABOVE and BELOW, 
but not with RIGHT and LEFT. I've tried varying the text justify as 
well, but maybe I haven't found the right combination.

Any ideas?

More information about the fxruby-users mailing list