Bring an application from the backgropund to the foreground on a key press

Login to reply to this topic.
Tue, 2005-08-23 10:36
Joined: 2005-07-22
Forum posts: 52
Hi !

I followed the wonderful tutorial on this site located at [url]http://www.newlc.com/article.php3?id_article=141 [/url] and was able to successfully send my application in the background  Smiley .
The application then waits for 5 secs (I used RTimer for this) and comes back into the foreground automatically.
What I would like to do is that instead of a preset interval the application should automatically come to the foreground when a key is pressed .
How do I make this to work ?

Thanks Smiley


Tue, 2005-08-23 10:49
Joined: 2003-04-01
Forum posts: 142
Re: Bring an application from the backgropund to the foreground
you could for example use Capturekey() function defined in RWindowGroup to catch a key even when you are in background.

yucca
  • Login to reply to this topic.