I have implemented the button class, following is the snippet of the code that implements the button class
label1 ("label1", "Info")
setSize (200, 100);
void buttonClicked (Button* button)
if (&button1 == button)
training = 1;
training = 0;
Once I run the code only part of the button is visible . Attached is the snapshot .