Hello,
I am trying to run a simple agar application which has only a button
attached on a fixed attached on a window. The problem is that the
button does not receive window-mousebuttondown event. When a attach
button to window directly it receives the event normaly (see attached
source code). It happens in agar 1.3.3 and in svn. In agar 1.3.2 it
works fine.
It is the new fixed behavior or it is a known/new bug?
Thanks in advance and sorry for my english.
Tiago Vieira M. Justino.
#include <agar/core.h>
#include <agar/gui.h>
static void click( AG_Event *event )
{
AG_Verbose( "Button %d Pushed\n", AG_INT(1) );
}
int main( int argc, char **argv )
{
AG_Window *wind;
AG_Fixed *fix;
AG_Button *butt1, *butt2;
AG_InitCore("butt", 0);
AG_InitVideo(640, 480, 32, 0);
agVerbose = 1;
AG_BindGlobalKey(SDLK_ESCAPE, KMOD_NONE, AG_Quit);
wind = AG_WindowNew( 0 );
butt1 = AG_ButtonNewFn( wind, 0, "butt1", click, "%d", 1 );
butt2 = AG_ButtonNewFn( NULL, 0, "butt2", click, "%d", 2 );
fix = AG_FixedNew( wind, 0 );
AG_FixedPut( fix, butt2, 0, 0 );
AG_WindowShow( wind );
AG_EventLoop();
AG_Quit();
return 0;
}
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html