try this:
#include <acknex.h>
#include <default.c>
var watch ;
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 test()
{
watch = 1234;
printf("on");
}
function main()
{
video_mode = 6;
mouse_mode=2;
while(1)
{
mouse_pos.x=mouse_cursor.x;
mouse_pos.y=mouse_cursor.y;
wait(1);
}}