Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[XForms] multiline input wordwrap

0 views
Skip to first unread message

Frank Cox

unread,
Oct 12, 2015, 5:09:17 PM10/12/15
to xforms-de...@nongnu.org
Is there an easy way to wordwrap a FL_MULTILINE_INPUT, or do I have to write my own wordwrap in a callback and FL_RETURN_ALWAYS to check it?

--
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com

Jens Thoms Toerring

unread,
Oct 13, 2015, 5:25:17 AM10/13/15
to Development with and of XForms
Hi Frank,

On Mon, Oct 12, 2015 at 03:09:04PM -0600, Frank Cox wrote:
> Is there an easy way to wordwrap a FL_MULTILINE_INPUT, or do I have to write
> my own wordwrap in a callback and FL_RETURN_ALWAYS to check it?

As far as I know the multiline input field never did automatic
word-wrapping and it definitely doesn't do now. So, yes, to get
something like that you'll have to check after each character
the user input and insert line-feeds at the correct places. I
guess it's going to be quite a job, though, especially when
using a non-fixed-width font...

Best regards, Jens
--
\ Jens Thoms Toerring ________ j...@toerring.de
\_______________________________ http://toerring.de

0 new messages