FNCLabelEdit: reset edit text to empty string


I have a VCL application, where the user enters text in the edit part and accepts it. If the user later goes back and cancels I would like to remove the entered string in the OnCancel event and reset it to the original state displaying the text from FNCLabeledit.Text.

I tried to set FNCLabelEdit.Edit.text := '' but that does not work.

Would you kindly direct me to a correct solution? Many thanks in advance


The approach is OK, but there was an issue in the component and the OnCancel event was called before the text got restored. We corrected this and the next update will contain the changes.