I have this code, in an app written in Xojo 2017r3:
gPrinter=OpenPrinterDialog(gPrinterSetup)
By the time we get to here, gPrinterSetup <>nil and has the info for the current printer.
In one part of my app, the printer dialog opens and waits for user input, as it always has, but in another part, the dialog flashes on the screen for a moment and then closes without any user interaction at all, at which point the code goes ahead and prints as if the user had pressed OK.
What would make the dialog not wait for user input?
I’ve since discovered that the same thing can happen with PageSetupDialog, as in this code snippet:
if gPrinterSetup.PageSetupDialog then
…which also skips right through the dialog.