DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2800
Version: 2.0-current


1 label is empty.
2 image was set.
3 widget was drawn.


4 set image to null.

5 problem: function returns before background is drawn.

void Widget::draw()
{
  clear_flag(HIGHLIGHT);
  if (box() == NO_BOX) {
    // check for completely blank widgets. We must not clip to their
    // area because it will break lots of programs that assumme these
    // can overlap any other widgets:
    if (!image() && (!label() ||
             align() != ALIGN_CENTER && !(align()&ALIGN_INSIDE))) {
      fl_did_clipping = this;
      return;
    }
    // draw the background behind the invisible widget:
    draw_background();
  } else {
    draw_box();
  }
  draw_label();
}


Link: http://www.fltk.org/str.php?L2800
Version: 2.0-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to