I'm having problems making a form modal in MDI mode.
I'm doing this in WM_COMMAND (toolbar button):
IF wID = IDC_MDIFORM_TOOLBAR1_BUTTON3 THEN BEEP : MDITEST_SHOW (HWND_MDIFORM_MDICLIENT, %TRUE)
It always seems to freeze it. It works if I use %FALSE, but this defeats
the purpose :)
I have been trying out various options, but I'm stuck. Is it possible to do
this with MDIs?
Thanks!
John
Hi John,
I just did a quick test and it appears that it will work if you make the main window the parent instead of the client window. For example, use the following:
MDITEST_SHOW (HWND_MDIFORM, %TRUE)
I had tried that too, but it still didn't work. I didn't mention this in my
original post, but I had the MDIChild to true. When I turned it to false
this worked. Is this the correct way to do it?
Thanks!
Yes, that is correct. MDI child forms can not be modal. They will always display as non-modal.
Cool. Thanks Paul. :)