Hi!

Here's the code that I tested today.

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>

/////////////////////////////// my mouse code
#include "mi_souris.c"
////////////////////// ---- my folders 
#define PRAGMA_PATH "..\\Models";
#define PRAGMA_PATH "..\\des_tga";
#define PRAGMA_PATH "..\\des_pcx";
#define PRAGMA_PATH "..\\panels";
#define PRAGMA_PATH "..\\sons_stereo"; //son_wav
#define PRAGMA_PATH "..\\son_wav";
//
BMAP* chrono_rec = "chrono_rec.pcx"; //my pcx picture
BMAP* b_fire = "fire.tga"; // tga picture for the button

//////////////////////////////////
PANEL* my_panel_1 = {
	bmap = chrono_rec;
	event = pan_event_1;
	scale_x = -0.5; 	
	scale_Y = -0.5;
	button (50, 50, b_fire,b_fire,b_fire,NULL,NULL,NULL);
	flags = SHOW;
}
///////////////////////////////
// panel event
function pan_event_1 ()
{
	while (mouse_left)
	{
		my_panel_1.pos_x = mouse_pos.x;   
		my_panel_1.pos_y = mouse_pos.y;
		wait (1);	
	}
}

function main() // main from code templates
{
	vec_set(screen_size,vector(800,400,0));
	vec_set(screen_color,vector(50,1,1)); // dark blue
	vec_set(sky_color,vector(50,1,1)); // dark blue
	video_window(NULL,NULL,0,"Moving a panel on the screen.");
	level_load("");
	ma_souris (); // my mouse code
	vec_set(camera.x,vector(-250,0,50));
	vec_set(camera.pan,vector(0,-15,0));
}



This moves the panel and the button over the screen.
When I touched the button the panel event was not activated.
Change the bmaps names and this should work.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C