Have a panel which serves as a button on top of another panel. The button panel works when positioned at pos_x = 0; pos_y = 0;
However when I move the button to the bottom of the panel or any where else, the button no longer calls the function when clicked.

The code is as follows:

PANEL* gpsfasetup_pan = //this is the main panel
{

layer = 30;
bmap = gpsfasetup_bmp;
flags = SHOW;
}

PANEL* quitprogrambutt_pan = //this is the button
{
pos_x= 0;
pos_y = 0;
layer=35;
bmap = quitprogrambutt_bmp;
flags = SHOW;
event = quitprogram();

}
The main panel bitmap covers the entire window so the button
is not outside the main panel.
There is nothing in the manual that addresses this problem.
Any help appreciated.