What FNC Component should I use for multi-line text entry.

I am writing a data-entry app. Users will be entering long form text with carriage returns in plain text.

The TMSFNCMemo seems to be a huge component dedicated to editing code. I don't think it is suitable.

There are many other TMSFNC components which seem possible choices for this use.

The TMSFNCRichEdit is possible, but it does not seem to have a Lines or Text property.

I thought the TMSFNCEdit might have a "multiline" property, or "wordwrap" ...but I can't see it.

Of course I could use a Delphi TMemo, but then all the multi-platform capability of FNC would be lost for my code.

Hi,

We don't have a multi-line FNC component other than TTMSFNCRichEditor & TTMSFNCMemo unfortunately. TTMSFNCEdit inherits from TEdit and thus also inherits the capabilities which is single line text editing.

OK.

That is a pity, as I really hoped to exclusively use FNC Components for my UI layer.

Thanks for the quick reply.

TMSFNCRichEdit has a property Text, but not to see in Projectinspector.

We'll investigate the possibilities and will report back.

Hi,

We looked at this and see some possibilities at extending TTMSFNCRichEditor. Right now, there is no Lines property, only a Text property, which is public. Can you provide me with a list of requirements so we can verify if we can meet them before working on extending TTMSFNCRichEditor?

Thank you Pieter

Really all I want is something to replicate the behaviour of the Delphi TMemo, but as an FNC component which can be used across all platforms.

I prefer simplicity. The FNCEdit is already useful having the "EditType" with options like "etString" and "etNumeric", if this component could have an EditType "etMemo" which held string data but could word wrap for multi-line representation on screen and data entry it would be great.

As a further note.

I tried using the RichEditor as if it was a TMemo, just setting the .Text property, but this resulted in some weird behaviour.

The text shows until the control has focus, then when the control has focus it becomes invisible, also there is no word-wrap ... so long lines over run the ends of the control.

Thank you for the additional information, we'll see what can be done.

TTMSFNCRichEditor has automatic wordwrap as default. How do you see a different behavior from this?
I can also not see an issue with invisible text when the control gets focus.Perhaps your SelectionTextColor/SelectionColor properties are the same?
If the problem persists, can you please provide steps / sample source project with which we can reproduce this here?