I have been doing a bit of messing around to see what I can get from it. I understand what your saying I think i just have to work away of making my code fit in, if that makes sense. my basic shape of code looks like below. I'm guessing that its not just a case of stripping away all the function tags and main tags and it works? Sorry for my VERY basic minded approach but it is confusing me abit!
Code:
button //would be the tags for the button
{
function 1()
{
}
function 2()
{
}
int main()
{
}
} // end of button