I am currently coding a school project. I apologize in advance for a possibly noob question.
I need to make a system for a fictional NGO, and I need to have all users register and login whenever they use the program.
I use editboxes and maskedits to receive the login data. The login screen has two editboxes, one for the username and one for the password. The registration screen is the same form, resized and with two additional, dynamic editboxes: One for confirming the password and another for the user's e-mail address.
Now, I made the static editboxes to contain a default value: If the user enters the editbox, then the default value disappears. If the user then exits the editbox without entering any values, the default value reappears. I haven't managed to get the dynamic editboxes to do the same.
How does one get OnActivate event handlers such as OnEnter/OnExit to fire when an already created dynamic component is activated?