develooper Front page | perl.wxperl.users | Postings from May 2013

Problem with fg/bg windows

Thread Next
From:
Johan Vromans
Date:
May 3, 2013 06:45
Subject:
Problem with fg/bg windows
Message ID:
m2haiksgrr.fsf@phoenix.squirrel.nl
Hi,

I have a fullscreen application, A, that runs on Windows. 
This application starts another fullscreen application, B.

Sometimes, especially when starting B takes several seconds, application
A is marked as "non responsive", which apparently raises its window. If
in the mean time application B showed its main window, the window of A
now covers the window of B, effectively dead-locking the system.

A crude solution is hiding A's main window:

	$topwindow->Show(0);
	system( B );
	$topwindow->Show(1);

This is suboptimal since the user may get a view of, and opportunity to
interact with, the desktop, which is not desired.

Using

        Wx::ExecuteArgs( [ ... ], wxEXEC_SYNC );

instead of 'system' does not seem to make a difference.

Any suggestions on how to improve this?

-- Johan

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About