<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Switching active display window </title>
		<link>http://www.allegro.cc/forums/view/616208</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 18 Apr 2016 00:50:43 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m porting an Allegro 4 program to Allegro 5.  Some details are here:</p><p><a href="http://www.stardot.org.uk/forums/viewtopic.php?f=44&amp;t=9065">http://www.stardot.org.uk/forums/viewtopic.php?f=44&amp;t=9065</a></p><p>This is an emulator for a 1980s home computer called the Acorn Atom. The original program allows you to set a breakpoint so that when the emulator hits a certain memory address, the emulator pauses and a debug console is opened.</p><p>I can&#39;t quite get this to work in Allegro 5.  What I need is a way to force a switch of focus from one window (display) to another. i.e. from the display running the emulated computer into the debug console.</p><p>At the point I want to switch the display, I&#39;ve tried things like al_resize_display() and al_set_window_position() to try to change the focus but with no luck.</p><p>Any ideas or suggestions ?</p><p>Malcolm
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Malcolm Harrow)</author>
		<pubDate>Sun, 17 Apr 2016 15:51:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>On Windows, you can use the following code :</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#include "windows.h"</span>

<span class="c">//...</span>

   SetForegroundWindow<span class="k2">(</span><a href="http://www.allegro.cc/manual/al_get_win_window_handle"><span class="a">al_get_win_window_handle</span></a><span class="k2">(</span>display<span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Mon, 18 Apr 2016 00:50:43 +0000</pubDate>
	</item>
</rss>
