How to update TEdit control on Main form with the input of a TEdit on a dialog after pressing ok button?
Posted on 2004-11-02
I have a Main Form with a TEdit and a TButton on it. Also I have a Dialog with a TEdit on it plus two buttons. CLicking the button on the main form pops up the dialog with the TEdit on it. Now I want to update the TEdit on the mainform with the contents of the TEdit on the dialog after button1 from the dialog is pressed while pressing button2 should cancel this operation leaving the edit on the mainform untouched.
My goal: popping up the dialog, insert some characters into the dialogs TEdit and only after I press OK button of the dialog, the contents of hte main forms TEdit is changed (immediately) otherwise it remains the same (untouched).
I gave my best shot this afternoon but failed to achieve this. Providing a working sample grants you the points. Let me know if my information is insufficient ok?
Regards from Holland,