230 views
in GUI Development by
Hello again EW team,

I have my text editor and a "Clear" button.

Now I want the text editor string to be empty when I press my button.

But all my attempts have not worked.

How can I get it to work?

 

Best regards

Justin

1 Answer

+1 vote
by

Hello Justin,

have you tried to assign an empty string "" to the property String of the Editor component (e.g. Editor.String = "")?

Best regards

Paul Banach

 

by

Hello Paul,

I had already tried that, but it hadn't worked.

I have now solved it differently by having a TextEditorField created in the code and it is deleted and recreated by changing the selection or by pressing the button.

Now I have another problem, when I click on Done, the last character of my string is not transferred, why is that?

Best regards

Justin

by

Hello Justin,

hmmm ... Assigning an empty string to the Text Editor's property String has the effect of the editor content being cleared. I have just tested it and it works. Have you eventually modified the Text Editor component? Since it is a template it is intended to be modified.

Now I have another problem, when I click on Done, the last character of my string is not transferred, why is that?

Good question. I think there is something particular in your implementation causing both anomalies. Can you prepare a small project demonstrating this behavior and upload it here? I would be interested to understand the circumstances why it didn't work.

Best regards

Paul

by
Hey Paul,

I don't know what it was and where the error was.
I just deleted and re-added the TextEditor and then it worked without any problems.

Nevertheless thanks for your answers.

Best regards
Justin

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...