// Fl_Output.C // This subclass of Fl_Input_ does not allow user to edit the output. // Used to display output. #include #include #include void Fl_Output::draw() { Fl_Boxtype b = box() ? box() : default_box(); if (damage() & 128) draw_box(b, color()); Fl_Input_::drawtext(x()+Fl::box_dx(b)+3, y()+Fl::box_dy(b), w()-Fl::box_dw(b)-6, h()-Fl::box_dh(b)); } int Fl_Output::handle(int event) { if (event == FL_FOCUS) return 0; Fl_Boxtype b = box() ? box() : default_box(); return Fl_Input_::handletext(event, x()+Fl::box_dx(b)+3, y()+Fl::box_dy(b), w()-Fl::box_dw(b)-6, h()-Fl::box_dh(b)); }