Paulo Scardine escreveu:
I subclassed modaldialog to make an "yesno" alert box.
Is it possible to write a global function to open this dialog and wait
a click on the "yes" or "no" buttons, returning true or false
according to the button clicked?
Now I realize that the "Laszlo way" is to use a Delegate to bind a
method "confirmed" on my forms to the onresult event on the dialog box.
This is somewhat weird, since the modal dialog is blocking the interface
anyway - I thought I could also block execution until closing the dialog
and return a value.
But finally I got it - if only I could write well in English I would
contribute something to the "alert" component reference article.
Thanks in advance,
--
Paulo