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

[STR New]

Link: http://www.fltk.org/str.php?L2738
Version: 1.3-feature


Archive: fltk-3.0.x-r9132

//margin(TOP,RIGHT,BOTTOM,LEFT)
//pixmap(32,32)

The code:
  fltk3::Box *b1 = new fltk3::Box(20,20,40,40);
  b1->align(fltk3::ALIGN_INSIDE | fltk3::ALIGN_LEFT);
  b1->image(pixmap1);
  b1->box(fltk3::FLAT_BOX);
  b1->color(fltk3::RED);

shows a margin(4,5,4,3).

The code:
  fltk3::Box *b1 = new fltk3::Box(20,20,40,40);
  b1->align(fltk3::ALIGN_INSIDE | fltk3::ALIGN_TOP);
  b1->image(pixmap1);
  b1->box(fltk3::FLAT_BOX);
  b1->color(fltk3::RED);

shows a margin(0,4,8,4):

The same holds for ALIGN_BOTTOM: no bottom margin.

ALIGN_LEFT and ALIGN_RIGHT are expected to have a 
margin of 0 pixels like ALIGN_TOP and ALIGN_BOTTOM.

winfried

Note: 'Software Version:' offers 1.3-feature and 2.0-feature;
       but not 3.0-feature.


Link: http://www.fltk.org/str.php?L2738
Version: 1.3-feature

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to