On my website you can download Zx_External which contains a module I use in all my projects. You may download one of the free project (without lock) like NbreConvert, SquareBid, etc. . The projects folders and the ZZ_External folder must be in the same parent folder.
Search “MyDialogSave”. You may have to clean other function I added (if you display a dialogbox in a sheet window, it is modal only on its parent window, not modal on all others windows. I added code with a flag to be able able to make a sheet window modal for all the windows of the application.
If you don’t know what I speak about I may have to make small project showing the diffrence.