Glenn W Munroe wrote:
Rob,

I used your Splashscreen module in my latest project. I noticed an ugly little flash at times between when the splash window is created and when it is centred on the screen. The adaptation to the module example below demonstrates it when you press the button. It’s not a major problem but it is a little more pronounced in my application. Adding the option “–visible => 0” to the splash window creation stanza in the module seems to fix it.

Glenn,

Thanks for the feedback. I cheated with my module, using a label control as a top level window; Win32::GUI tries to be clever, and makes anything that it thinks should be a child window visible, so that you don't need to individually show each of your controls. So it makes labels visible by default ... so indeed your solution will do the trick.

In reality, next time I re-visit that module, I'll change it to use a 'proper' top level window (Win32::GUI::Graphic probably) and I'll draw
the bitmap into the DC myself.

I've made a note to ensure this gets fixed.

Regards,
Rob.

Reply via email to