0

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?

Noob
  • 23
  • 3

1 Answers1

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
  • 1
    You 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