<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Switching between graphical mode?</title>
		<link>http://www.allegro.cc/forums/view/572666</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 14 Mar 2006 08:51:45 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am writing a win32 console application under MVC++ 2005. After the iser inputs some data via std::cin, I graphical visualization begins. I have 2 questions:<br />1. By pressing a key, how do I return back to console mode, that is to close the graphical screen. Or just pass the current focus to the console window in order for my std::cin to work again?<br />2. How do I return back to graphical mode?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Zdravko)</author>
		<pubDate>Mon, 13 Mar 2006 22:58:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="source-code"><a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_TEXT,<span class="n">80</span>,<span class="n">25</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span></span>;<br />Might work, might not, I don&#39;t know.</p><p>But the real question here is, why do you want to force your user to type input at the command prompt. Why not make a proper user interface instead?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Mon, 13 Mar 2006 23:04:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>miran , ok. Now tell me how do I input real numbers with Allegro? That is input like 1, 2, 300, 5.5454, -43.0021 ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Zdravko)</author>
		<pubDate>Mon, 13 Mar 2006 23:12:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code snippet"><div class="inner"><pre><a href="http://www.allegro.cc/manual/keypressed" target="_blank"><span class="a">keypressed</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<a href="http://www.allegro.cc/manual/uatof" target="_blank"><span class="a">uatof</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

Or use the Allegro GUI or one of the GUI add-on libraries (such as for example MASkinG), put an editbox on the screen (or a slider or whatever you want) and get input from there...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Mon, 13 Mar 2006 23:15:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>miran, thank you fot the help.<br />With uatof(); I can convert a C string into a double. But how do I create the GUI for the input? I need something very simple - a couple of edit boxes and a few buttons will do the work.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Zdravko)</author>
		<pubDate>Tue, 14 Mar 2006 01:12:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Read the Allegro manual, the section about the GUI.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Tue, 14 Mar 2006 01:13:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hey take a look at my game i do some input there along with some other goodies</p><p><a href="http://www.allegro.cc/depot/Thegame/">http://www.allegro.cc/depot/Thegame/</a></p><p>look in &quot;Textbox.h&quot;</p><p>good luck </p><p>ps:right a review if you have a spear min .  good luck
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (piccolo)</author>
		<pubDate>Tue, 14 Mar 2006 08:51:45 +0000</pubDate>
	</item>
</rss>
