Peter Below's Threaded Splash Screen and Modal Dialogs

前端 未结 3 480
说谎
说谎 2021-02-06 19:45

I\'m using Peter Below\'s PBThreadedSplashForm to display during application startup. It gets updated as various databases are opened during the creation of the data module (jus

3条回答
  •  粉色の甜心
    2021-02-06 20:30

    If you're looking for an explanation, I can't help you.

    If you're looking for a solution, you're not the first. Eddie Shipman encountered this same problem in May. His proposed solution was to make the other dialog (the one hidden by the splash screen) be a topmost window, but he ultimately avoided the issue by hiding the splash screen before the application needed to display any other windows.

    Another suggestion was to post commands to the splash screen and have it display the message box. The dialog could be parented to the splash screen. It's tricky, though, because you're not afforded any of the luxuries of the VCL anymore since it doesn't work outside the main thread.

提交回复
热议问题