Here is my problem:
I need a way to prompt the user for text input and then detect whether the user
has pressed the OK or cancel buttons.
Something like this:
if MessageDlg('Welcome to my Delphi application. Exit now?',
mtConfirmation, [mbYes, mbNo], 0, mbYes) = mrYes then
would be ideal, but obviously, i can't use the built in dialogs because they don't have
the text should be stored in a global (in the dialog form) and the button press returned to the calling window (just like the built in dialogs).
I have tried to make the dialog box during design time as a form that is simply shown when i need input, but i am having trouble informing the calling window when a button has been pressed.
The procedure that calls for the dialog box needs to call it, and then either continue the procedure using the text that the user inputs (if OK is pressed), or skip the rest of the procedure (is Cancel is pressed)
Also, I am using the MDI, and any calls will be done from child windows
and not the main form.
let me know if you need any more info.