Hi Toryno,
I have found a way to do this
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
STRING* temp_text ="pete";
var* tee;
tee = 3;
function main()
{
video_mode = 7;
screen_color.blue = 150;
mouse_mode = 4;
}
//////////////////////////////////////////////////////////////////////
PANEL* main_pan =
{
bmap = "main.pcx";
pos_x = 250;
pos_y = 200;
button (250, 134, "quitclicked.pcx", "quitnormal.pcx", "quitover.pcx", quit_program, NULL, NULL);
digits (200,100, "%s",*,1,temp_text);
flags = OVERLAY | VISIBLE;
}
function quit_program()
{
str_cpy(temp_text,"Its changed");
}