i have done it.it is not the way i am looking for.it has to do in runtime using pan_setbutton().
but there is a problem.in window mode,it is ok.no problem.
but in fullscreen mode:i can not see mouse pointer .
but clicking is working.i mean when some how mouse pointer goes on button it works.the problem is:i am not seeing the mouse pointer.

here is the code:

#include <default.c>
#include <stdio.h>

//all images used in button is 200*100BMAP*bmap_sg="SG.pcx";
BMAP* bmap_click = "OP.pcx";
BMAP* bmap_over = "QG.pcx";
BMAP* bmap_normal = "SG.pcx";

function func_on()
{printf("func_on");}

function func_off()
{printf("func_off");}

function Click()
{printf("button has been Clickcked");}

function Leave()
{printf("button has been leaved");}

function Over()
{printf("mouse is Over this button ");}

PANEL* pan =
{
size_x = 800;
size_y = 600;
bmap = BG.pcx;//image size is 800*600
flags = SHOW;
}



function main()
{

screen_color.red =255;
screen_size.x = 800;
screen_size.y = 600;
video_screen=1;
mouse_mode = 4;

pan_setbutton(pan,0,1,350,200,bmap_click,bmap_normal,bmap_over,NULL,Click,Leave,Over);

}


keep moving forward