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

1 REPLY 1
Oleg
Expert

Use the PanelCloseRequested of the PanelObserver.

See the AddRenameViewPointItemDialog.cpp of Navigator_Test example.