Wrap text inside an FXTable cell?

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

Wrap text inside an FXTable cell?

by Philippe Lang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Is it possible to wrap text inside an FXTable cell, just like it is
possible with an FXText object? I'd like to display and edit multi-line
text inside an FXTable cell.

Thanks!

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

Re: Wrap text inside an FXTable cell?

by Jeroen van der Zijp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 06 May 2008, Philippe Lang wrote:
> Hi,
>
> Is it possible to wrap text inside an FXTable cell, just like it is
> possible with an FXText object? I'd like to display and edit multi-line
> text inside an FXTable cell.

FXTableItem can already handle multiple lines of text, separated by newlines.
However, the default edit control is FXTextField, which edits only a single
line.

You can however subclass FXTableItem and have it be edited by FXText instead;
see FXComboTableItem on how that's done.

Hope this helps,

                        Jeroen
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users
LightInTheBox - Buy quality products at wholesale price!