Archicad C++ API
About Archicad add-on development using the C++ API.

how to stop it from closing in Modai Dialog (Enter key or ESC key )

nishida_jp
Participant

I am programming a c++ add-on using ArchiCAD27API + Visual Studio 2019 + Windows 10.

When I press the Enter key or ESC key in the Modai Dialog, the dialog closes.

Please tell me how to stop it from closing

3 REPLIES 3
Oleg
Expert

Use the PanelCloseRequested of the PanelObserver.

See the AddRenameViewPointItemDialog.cpp of Navigator_Test example.

Thank you for your reply.
My program uses DGModalDialog() and I can't perform the processing you suggested.
If you know of any other ways, please let me know.

Oleg
Expert

There is DG_MSG_CLOSEREQUEST message.
But unfortunately, it is not documetnted. I use C++ dialogs, and i dont know any details, sorry.