<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>GWEN - GUI toolkit</title>
		<link>http://www.allegro.cc/forums/view/608563</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 30 Oct 2011 15:06:56 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Allegro is now officially supported by GWEN. ( <a href="http://code.google.com/p/gwen/">http://code.google.com/p/gwen/</a> ) Big thanks to chinbillybilbo for their work on the renderer.</p><p><span class="remote-thumbnail"><span class="json">{"name":"604918","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57f6d4291d52c9346c7f722ccd285e3c.png","w":1040,"h":806,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57f6d4291d52c9346c7f722ccd285e3c"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/7/57f6d4291d52c9346c7f722ccd285e3c-240.jpg" alt="604918" width="240" height="186" /></span> <span class="remote-thumbnail"><span class="json">{"name":"604919","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/c\/0c2ab57e8773f371b8bfa89fa8a28321.png","w":1040,"h":806,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/c\/0c2ab57e8773f371b8bfa89fa8a28321"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/0/c/0c2ab57e8773f371b8bfa89fa8a28321-240.jpg" alt="604919" width="240" height="186" /></span> <span class="remote-thumbnail"><span class="json">{"name":"604920","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/3\/230a2d2ba00c773443acd56766016dcd.png","w":1040,"h":806,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/3\/230a2d2ba00c773443acd56766016dcd"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/2/3/230a2d2ba00c773443acd56766016dcd-240.jpg" alt="604920" width="240" height="186" /></span></p><p>You can download the sample (for windows) here:</p><p><a href="http://code.google.com/p/gwen/downloads/detail?name=GWEN-WinSamples-4.zip">http://code.google.com/p/gwen/downloads/detail?name=GWEN-WinSamples-4.zip</a></p><p>I threw the sample and input class together from other examples I&#39;d downloaded.. and I&#39;m hoping they&#39;re fully cross platform. I was hoping someone would take a look at it to make sure I&#39;m not doing something stupid.</p><p>Sample: <a href="http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/Samples/Allegro/AllegroSample.cpp">http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/Samples/Allegro/AllegroSample.cpp</a></p><p>Renderer: <a href="http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/Renderers/Allegro/Allegro.cpp">http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/Renderers/Allegro/Allegro.cpp</a></p><p>Input: <a href="http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/include/Gwen/Input/Allegro.h">http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/include/Gwen/Input/Allegro.h</a></p><p>Also, sorry if this looks like a repost. The other GWEN related thread seemed to get a bit off topic - and wasn&#39;t really announcing support for it.</p><p>Let me know if you have any questions <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 10 Oct 2011 01:12:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I see awfully little images in your post. Is this about some GUI toolkit?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Halmén)</author>
		<pubDate>Mon, 10 Oct 2011 01:46:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Screenshots are nice. You can also attach files to your post,<br />or show code in &lt;code&gt;code goes here...&lt;/code&gt; tags.</p><p>How about a complete widget list?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Mon, 10 Oct 2011 03:51:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Here&#39;s some screenshots showing a few of the widgets. The list of widgets down the left shows the majority of the available widgets.</p><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 10 Oct 2011 12:51:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Use the img tags with &lt;&gt;, not []</p><p>Like that:<br /><span class="remote-thumbnail"><span class="json">{"name":"604915","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57f6d4291d52c9346c7f722ccd285e3c.png","w":1040,"h":806,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57f6d4291d52c9346c7f722ccd285e3c"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/7/57f6d4291d52c9346c7f722ccd285e3c-240.jpg" alt="604915" width="240" height="186" /></span><span class="remote-thumbnail"><span class="json">{"name":"604916","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/c\/0c2ab57e8773f371b8bfa89fa8a28321.png","w":1040,"h":806,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/c\/0c2ab57e8773f371b8bfa89fa8a28321"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/0/c/0c2ab57e8773f371b8bfa89fa8a28321-240.jpg" alt="604916" width="240" height="186" /></span><br /><span class="remote-thumbnail"><span class="json">{"name":"604915","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57f6d4291d52c9346c7f722ccd285e3c.png","w":1040,"h":806,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57f6d4291d52c9346c7f722ccd285e3c"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/7/57f6d4291d52c9346c7f722ccd285e3c-240.jpg" alt="604915" width="240" height="186" /></span></p><p>Looks nice BTW. A pity it&#39;s C++ only, I only use C ^^</p><p>Edit: and you forgot to add a / at the end of the url, after the closing &quot;
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Mon, 10 Oct 2011 12:55:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 10 Oct 2011 12:56:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Thanks for the UI Garry. <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /> It was quite easy to add Allegro support due to your good design, and to Allegro (5!) being a very practical library. A happy marriage. <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" /></p><p>Cheers!</p><p><a href="http://chinbilly.blogspot.com/">http://chinbilly.blogspot.com/</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (billyquith)</author>
		<pubDate>Mon, 10 Oct 2011 13:16:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Congratulations for this library. Some questions:</p><p>1) when documentation will be available.<br />2) when layout management will be available.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Mon, 10 Oct 2011 17:30:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What kind of layout management do you want? Here&#39;s how it&#39;s done right now:</p><p><a href="http://garry.tv/post/9338161524/docking">http://garry.tv/post/9338161524/docking</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 10 Oct 2011 18:23:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608563/933657#target">Garry Newman</a> said:</div><div class="quote"><p> What kind of layout management do you want? Here&#39;s how it&#39;s done right now:</p></div></div><p>How about laying widgets in rows, in columns, in a grid, etc.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Mon, 10 Oct 2011 19:42:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you want to lay widgets in a row you&#39;d just dock them all left (or right) in a child panel. To lay in a row vertically you&#39;d dock top.</p><p>You can lay them out manually in a child panel, by overriding the Layout function. In there you&#39;d set the position and size manually, using whatever you want.</p><p>We have a few layout controls to make your life easier, but this is something that could definitely be expanded upon. I&#39;m trying to keep things as simple as I can right now.</p><p>Here&#39;s the layout controls: </p><p><a href="http://code.google.com/p/gwen/source/browse/#svn%2Ftrunk%2Ftrunk%2Fgwen%2Finclude%2FGwen%2FControls%2FLayout">http://code.google.com/p/gwen/source/browse/#svn%2Ftrunk%2Ftrunk%2Fgwen%2Finclude%2FGwen%2FControls%2FLayout</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 10 Oct 2011 20:12:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Garry, what is your plan regarding documentation? it is hard to browse the source code, just to learn the basics.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Mon, 10 Oct 2011 20:20:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m planning to document some of the simple things that people have pointed out (laying out, widget list, margin vs padding). </p><p>But I want to produce a few heavily commented samples to show how things are meant to work <span class="source-code">in the <a href="http://www.delorie.com/djgpp/doc/libc/libc_864.html" target="_blank">wild</a></span> rather than relying on just docs. I prefer this method as docs can go out of date - but the samples will be updated along with any changes to the codebase.</p><p>I&#39;m thinking a couple of simple things, like a calculator/model viewer just to help people understand how it all fits together.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 10 Oct 2011 20:27:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Some other questions:</p><p>1) how does focus work.<br />2) how does modality work.<br />3) how do menus work.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Tue, 11 Oct 2011 20:25:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>There&#39;s two types of focus, keyboard and mouse. Mouse focus is simply the control you&#39;re hovering over. Keyboard focus is similar to windows focus - in that you press tab to go to the next control.</p><p>Modal panels are simply just screen sized panels that block out input to everything else - because you can&#39;t click through them. The <span class="source-code">modalled</span> control is a child of that control - so you can still interact with it.</p><p>I don&#39;t understand what you want to know about menus?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Tue, 11 Oct 2011 21:34:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608563/933784#target">Garry Newman</a> said:</div><div class="quote"><p> I don&#39;t understand what you want to know about menus?</p></div></div><p>Win32 popup menus block the main event queue. Does this happen with your GUI? I think not, but I&#39;d like a confirmation.</p><p>Furthermore, how do you handle events, when a menu is closed and when a menu is opened? a menu is a modal structure, but it consists of many top-level widgets. In Win32, if a menu is open, windows receive mouse movement events, and mouse click events, but Win32 knows if a menu is open and closes the menu before the window receives the mouse click event.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Wed, 12 Oct 2011 16:51:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No the menu is just a control that floats above everything else. When you click on something that isn&#39;t derived from a menu it closes all open menus.</p><p>You can see examples of all the controls usage here: <a href="http://code.google.com/p/gwen/source/browse/#svn%2Ftrunk%2Ftrunk%2Fgwen%2FUnitTest">http://code.google.com/p/gwen/source/browse/#svn%2Ftrunk%2Ftrunk%2Fgwen%2FUnitTest</a></p><p>This is the menu one:</p><p><a href="http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/UnitTest/MenuStrip.cpp">http://code.google.com/p/gwen/source/browse/trunk/trunk/gwen/UnitTest/MenuStrip.cpp</a></p><p>which creates this menu</p><p><span class="remote-thumbnail"><span class="json">{"name":"230a2d2ba00c773443acd56766016dcd-1024.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/b\/2b5bfc8ce131ea9c64373cc4c1bb1f7a.jpg","w":1024,"h":793,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/b\/2b5bfc8ce131ea9c64373cc4c1bb1f7a"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/2/b/2b5bfc8ce131ea9c64373cc4c1bb1f7a-240.jpg" alt="230a2d2ba00c773443acd56766016dcd-1024.jpg" width="240" height="185" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Wed, 12 Oct 2011 22:11:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Looks really nice!. I&#39;m definitely giving it a try.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Wed, 12 Oct 2011 22:19:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608563/933912#target">Garry Newman</a> said:</div><div class="quote"><p> No the menu is just a control that floats above everything else. When you click on something that isn&#39;t derived from a menu it closes all open menus.</p></div></div><p>Does the menu have a parent widget, i.e. is it a child of the root widget, or it is a standalone widget?</p><p>And how do you close the menu when the user clicks outside of it? do you have an &#39;if menu is open then close it&#39; statement somewhere in the event handling code?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Thu, 13 Oct 2011 18:30:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Basically yes. The menu is a child of the canvas (the root panel).</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">bool</span> Gwen::Input::OnMouseClicked<span class="k2">(</span> Controls::Base<span class="k3">*</span> pCanvas, <span class="k1">int</span> iMouseButton, <span class="k1">bool</span> bDown <span class="k2">)</span>
<span class="k2">{</span>
        <span class="c">// If we click on a control that isn't a menu we want to close</span>
        <span class="c">// all the open menus. Menus are children of the canvas.</span>
        <span class="k1">if</span> <span class="k2">(</span> bDown <span class="k3">&amp;</span><span class="k3">&amp;</span> <span class="k2">(</span><span class="k3">!</span>Gwen::HoveredControl <span class="k3">|</span><span class="k3">|</span> <span class="k3">!</span>Gwen::HoveredControl-&gt;IsMenuComponent<span class="k2">(</span><span class="k2">)</span><span class="k2">)</span> <span class="k2">)</span>
        <span class="k2">{</span>
                pCanvas-&gt;CloseMenus<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
        <span class="k2">}</span>
</pre></div></div><p>

And</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">bool</span> Base::IsMenuComponent<span class="k2">(</span><span class="k2">)</span>
<span class="k2">{</span>
        <span class="k1">if</span> <span class="k2">(</span> <span class="k3">!</span>m_Parent <span class="k2">)</span> <span class="k1">return</span> <span class="k1">false</span><span class="k2">;</span>
        <span class="k1">return</span> m_Parent-&gt;IsMenuComponent<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<span class="k2">}</span>

<span class="k1">void</span> Base::CloseMenus<span class="k2">(</span><span class="k2">)</span>
<span class="k2">{</span>
        <span class="k1">for</span> <span class="k2">(</span> Base::List::iterator it <span class="k3">=</span> Children.begin<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span> it <span class="k3">!</span><span class="k3">=</span> Children.end<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span> <span class="k3">+</span><span class="k3">+</span>it <span class="k2">)</span>
        <span class="k2">{</span>
                <span class="k2">(</span><span class="k3">*</span>it<span class="k2">)</span><span class="k3">-</span><span class="k3">&gt;</span>CloseMenus<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
        <span class="k2">}</span>
<span class="k2">}</span>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Thu, 13 Oct 2011 20:47:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok, thank you for the replies.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Fri, 14 Oct 2011 14:10:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>There&#39;s something wrong with the build system on Linux:</p><pre>
% make Sample-Allegro verbose=1   
==== Building Renderer-Allegro (release) ====

Creating obj/Release/Renderer-Allegro
mkdir -p obj/Release/Renderer-Allegro
Allegro.cpp
g++ -MMD -MP -DNDEBUG -I../../../include x86_64 -g -O2 -ffast-math -fno-rtti -o &quot;obj/Release/Renderer-Allegro/Allegro.o&quot; -c &quot;../../../Renderers/Allegro/Allegro.cpp&quot;
g++: x86_64: No such file or directory
make[1]: *** [obj/Release/Renderer-Allegro/Allegro.o] Error 1
make: *** [Renderer-Allegro] Error 2
</pre><p>

Where is that x86_64 coming from?</p><p><b>edit</b>: the ARCH variable. I can suppress it by running make ARCH=</p><p>Linking with -lalleg won&#39;t work. That&#39;s for Allegro 4. The sample program requires at least: -lallegro -lallegro_image -lallegro_font -lallegro_ttf -lallegro_primitives.  It would be best to use pkg-config to pull in the libraries; I don&#39;t know if that&#39;s possible with premake.</p><p><b>edit</b> See the patch. Dunno about pkg-config.</p><p>The Allegro sample pegs the CPU unnecessarily. It should use al_wait_for_event instead of al_get_next_event so that it blocks.</p><p><b>edit</b> see patch.</p><p>The patch also passes through mouse wheel events.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Fri, 14 Oct 2011 15:50:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Garry, one last question: how do you handle menu bars? menu bars are not children of the root panel, obviously.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Fri, 14 Oct 2011 17:35:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks for the patch!</p><p>The menu bar (menu strip) is just a control - like a button. You can put it anywhere you want.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 17 Oct 2011 15:17:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608563/934421#target">Garry Newman</a> said:</div><div class="quote"><p> The menu bar (menu strip) is just a control - like a button. You can put it anywhere you want.</p></div></div><p>It is, but how do you handle the modality of it, since menu bars have sub menus which are pop ups?</p><p>Is a menu bar positioned above the panel that closes a menu?</p><p>And if so, does this happen automatically, or does the programmer has to do so manually?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (axilmar)</author>
		<pubDate>Mon, 17 Oct 2011 16:10:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>All panel interactions potentially close the menu. Unless you&#39;ve clicked on a menu component.</p><p>The sub menus aren&#39;t children of the strip menu, they&#39;re children of the main canvas - pushed out to the front.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Mon, 17 Oct 2011 21:24:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Congratulations man! I have ran the example, it looks <b>VERY</b> nice.</p><p>Just some details, I can&#39;t avoid to see them. <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" /><br />	<br />In the SFML version: a white line.<br /><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/3/0/30f979cc88884733f0f19d06a89849a7.png" alt="604965" width="166" height="237" /><br />In the Allegro version: some overlapping<br /><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/3/53e435af356e37075e55dec42ce655a1.png" alt="604966" width="184" height="259" /><br />All versions: It went to far<br /><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/b/b/bb93684bc98575552253ed1713744cc8.png" alt="604967" width="138" height="107" /><br />In Allegro version: Less looking cool gradient<br /><span class="remote-thumbnail"><span class="json">{"name":"604968","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/9\/69f542d9fb046fe068150bbc91d035f7.png","w":454,"h":277,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/6\/9\/69f542d9fb046fe068150bbc91d035f7"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/6/9/69f542d9fb046fe068150bbc91d035f7-240.jpg" alt="604968" width="240" height="146" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (AMCerasoli)</author>
		<pubDate>Mon, 17 Oct 2011 23:41:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks - I&#39;ll check those out!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Tue, 18 Oct 2011 13:04:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi there, it&#39;s me again... </p><p>I think you did this GUI just in time to use it in one of my projects. I need to create some binary files, the console would be enough the problem but I need UTF-8 support, and I don&#39;t get it working properly.</p><p>Anyway I tried to compile your library, but I got this error:</p><pre class="terminal">..\..\..\include\Gwen\Controls\Base.h|288|error: &#39;Gwen::Utility&#39; has not been declared|</pre><p>

So I added <span class="source-code"><span class="p">#include "Gwen/Utility.h"</span></span> to <span class="source-code">Base.h</span></p><p>Started compiling again, but then this:</p><pre class="terminal">..\gwen\src\Utility.cpp|23|error: invalid conversion from &#39;unsigned int&#39; to &#39;const wchar_t*&#39;|</pre><p>

In this part:</p><div class="source-code snippet"><div class="inner"><pre>UnicodeString Gwen::Utility::Format<span class="k2">(</span> <span class="k1">const</span> <span class="k1">wchar_t</span><span class="k3">*</span> fmt, ... <span class="k2">)</span>
<span class="k2">{</span>
  <span class="k1">wchar_t</span> strOut<span class="k2">[</span> <span class="n">4096</span> <span class="k2">]</span><span class="k2">;</span>

  va_list s<span class="k2">;</span>
  va_start<span class="k2">(</span> s, fmt <span class="k2">)</span><span class="k2">;</span> 
<div class="highlight">  vswprintf<span class="k2">(</span> strOut, <span class="k1">sizeof</span><span class="k2">(</span>strOut<span class="k2">)</span>, fmt, s <span class="k2">)</span><span class="k2">;</span></div>
  va_end<span class="k2">(</span>s<span class="k2">)</span><span class="k2">;</span>

  UnicodeString str <span class="k3">=</span> strOut<span class="k2">;</span>
  <span class="k1">return</span> str<span class="k2">;</span>
<span class="k2">}</span>
</pre></div></div><p>

I have being reading, but besides <span class="source-code">vswprintf<span class="k2">(</span><span class="k2">)</span></span> is deprecated for security reasons I couldn&#39;t find anything.</p><p>---<br />MinGW 4.5.2<br />Code::Blocks<br />Allegro 5.0.4
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (AMCerasoli)</author>
		<pubDate>Tue, 25 Oct 2011 04:05:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Sorry for the delayed reply. I&#39;ll have to check into that function because it really does seem platform specific - even though it&#39;s meant to be standard.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Garry Newman)</author>
		<pubDate>Sun, 30 Oct 2011 15:06:56 +0000</pubDate>
	</item>
</rss>
