I want to popup an edit box or another modal when I click a button. I can type something in this box and when I close it, I will receive the data I've just typed. How can I do?
Asked
Active
Viewed 99 times
1 Answers
2
Most obvious way would be to create a dialog box with one edit control and OK and Cancel buttons (you would probably want to alow user to cancel).
Then you provide a method in that dialog to access typed-in value after it was closed.

Vlad Feinstein
- 10,960
- 1
- 12
- 27
-
1You will need to capture a window event when the window is closing, so you can save the contents of the edit control before it's destroyed. – Mark Ransom Feb 11 '22 at 03:14