Hey,
I have implemented the button class, following is the snippet of the code that implements the button class
public:
Raster()
:Component("Raster"),
button1 ("Train"),
label1 ("label1", "Info")
{
addAndMakeVisible (&button1);
addAndMakeVisible (&label1);
setSize (200, 100);
button1.addListener (this);
}
void buttonClicked (Button* button)
{
if (&button1 == button)
{
training = 1;
std::cout<<"\nTraining";
}
else
training = 0;
}
Once I run the code only part of the button is visible . Attached is the snapshot .
