#include using namespace std; PanelTexto::PanelTexto(int x, int y, int w, int h, const char *tituloVentana, const char *texto) : Fl_Window(x,y,w,h,tituloVentana), box(new Fl_Box(10,10,w-20,h-20,texto)) { box->box(FL_UP_BOX); box->labelsize(36); box->labelfont(FL_BOLD+FL_ITALIC); box->labeltype(FL_SHADOW_LABEL); show(); } void PanelTexto::cambiarTexto(const char *nuevoTexto) { box->label(nuevoTexto); }