Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » GWEN - GUI toolkit

This thread is locked; no one can reply to it. rss feed Print
 1   2 
GWEN - GUI toolkit
Garry Newman
Member #13,614
October 2011

All panel interactions potentially close the menu. Unless you've clicked on a menu component.

The sub menus aren't children of the strip menu, they're children of the main canvas - pushed out to the front.

AMCerasoli
Member #11,955
May 2010
avatar

Congratulations man! I have ran the example, it looks VERY nice.

Just some details, I can't avoid to see them. :-/

In the SFML version: a white line.
604965
In the Allegro version: some overlapping
604966
All versions: It went to far
604967
In Allegro version: Less looking cool gradient
{"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"}604968

Garry Newman
Member #13,614
October 2011

Thanks - I'll check those out!

AMCerasoli
Member #11,955
May 2010
avatar

Hi there, it's me again...

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't get it working properly.

Anyway I tried to compile your library, but I got this error:

..\..\..\include\Gwen\Controls\Base.h|288|error: 'Gwen::Utility' has not been declared|

So I added #include "Gwen/Utility.h" to Base.h

Started compiling again, but then this:

..\gwen\src\Utility.cpp|23|error: invalid conversion from 'unsigned int' to 'const wchar_t*'|

In this part:

UnicodeString Gwen::Utility::Format( const wchar_t* fmt, ... )
{
  wchar_t strOut[ 4096 ];

  va_list s;
  va_start( s, fmt ); 
vswprintf( strOut, sizeof(strOut), fmt, s );
va_end(s); UnicodeString str = strOut; return str; }

I have being reading, but besides vswprintf() is deprecated for security reasons I couldn't find anything.

---
MinGW 4.5.2
Code::Blocks
Allegro 5.0.4

Garry Newman
Member #13,614
October 2011

Sorry for the delayed reply. I'll have to check into that function because it really does seem platform specific - even though it's meant to be standard.

 1   2 


Go to: