Delphi: How to name one form from another?

I am trying to create a more complex dialog type form (called frmComment) that uses the Tmemo field and some labels. I realized that if I run frmComment.Show, it will show the form, but processing will not stop. Basically, how do I handle a procedure to stop before closing a form?

Or, if this is not practical, the best way is to create a more complex dialog form (which stops processing the program and returns something useful).

thanks

+4
source share
1 answer

You just need to call ShowModal instead of Show , and the dialog will be modal.

Modal dialogs disable other windows in the application so that the modal dialog and only the modal dialog can receive input.

+7
source

Source: https://habr.com/ru/post/1348134/


All Articles