You will need to first load 3 images(idle,mouse over, and pressed), then call the MakeButton function which will handle the sprite creation. Then while you loop the menu, call the RunButtons function to handle the actual mouse ect.
next you call IsButtonDown(iButtonID) to handle what the button does, here is an example.
#define Button1 1
#define Button1 2
#define Button1 3
#define BTN_EXIT 4
dbLoadImage("Button1idle.png",Button1);
dbLoadImage("Button1MOver.png",Button2);
dbLoadImage("Button1Pressed.png",Button3);
MakeButton(BTN_EXIT,1,dbScreenWidth()/2,dbScreenWidth()/2,0,Button1,Button2,Button3);
while(InMenu)
{
RunButtons();
if(IsButtonDown(BTN_EXIT))
{
//ExitMenu
}
}
If you still dont understand, I will make a quick example
if(You.AddCode.toPost)TGC.Users.CanHelp = true;
else return NoCodeMessage;