just tried with layer=5 and mouse_mode = 1 and 3 and it does not work either. This is a simple version of my script. It does not work for me.
#include <acknex.h>
#include <default.c>
var watch ;
function test()
{
watch = 1234;
printf("on");
}
PANEL* pTest =
{
pos_x = 10; // CONTROL PANEL POSITION IN WINDOW
pos_y = 10;
size_x = 150;
size_y = 300;
layer = 2;
button(10, 10, "boton2.bmp", "boton1.bmp", NULL, test, NULL, NULL);
red = 128;
green = 128;
blue = 128;
flags = LIGHT | VISIBLE;
}
function main()
{
video_mode = 6;
while(1) wait(1);
}
Last edited by enrike; 07/27/09 06:36.