diff options
Diffstat (limited to 'test/bitmap.cxx')
| -rw-r--r-- | test/bitmap.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/bitmap.cxx b/test/bitmap.cxx index f351cf790..a033a84c6 100644 --- a/test/bitmap.cxx +++ b/test/bitmap.cxx @@ -1,5 +1,5 @@ // -// "$Id: bitmap.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $" +// "$Id: bitmap.cxx,v 1.4.2.3.2.1 2001/08/05 23:58:54 easysw Exp $" // // Bitmap label test program for the Fast Light Tool Kit (FLTK). // @@ -96,11 +96,9 @@ static uchar sorceress_bits[] = { 0xff, 0xff, 0x40, 0xf0, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0xff, 0x41, 0xf0, 0xff, 0xff, 0xff, 0x07}; -Fl_Bitmap fl_bitmap(sorceress_bits, sorceress_width, sorceress_height); - #include <FL/Fl_Toggle_Button.H> -Fl_Toggle_Button *leftb,*rightb,*topb,*bottomb,*insideb; +Fl_Toggle_Button *leftb,*rightb,*topb,*bottomb,*insideb,*overb; Fl_Button *b; Fl_Window *w; @@ -111,25 +109,27 @@ void button_cb(Fl_Widget *,void *) { if (topb->value()) i |= FL_ALIGN_TOP; if (bottomb->value()) i |= FL_ALIGN_BOTTOM; if (insideb->value()) i |= FL_ALIGN_INSIDE; + if (overb->value()) i |= FL_ALIGN_TEXT_OVER_IMAGE; b->align(i); w->redraw(); } int main(int argc, char **argv) { Fl_Window window(400,400); ::w = &window; - Fl_Button b(140,160,120,120,0); ::b = &b; - //(new Fl_Bitmap(sorceress_bits,sorceress_width,sorceress_height))->label(&b); - fl_bitmap.label(&b); - leftb = new Fl_Toggle_Button(50,75,50,25,"left"); + Fl_Button b(140,160,120,120,"Bitmap"); ::b = &b; + (new Fl_Bitmap(sorceress_bits,sorceress_width,sorceress_height))->label(&b); + leftb = new Fl_Toggle_Button(25,75,50,25,"left"); leftb->callback(button_cb); - rightb = new Fl_Toggle_Button(100,75,50,25,"right"); + rightb = new Fl_Toggle_Button(75,75,50,25,"right"); rightb->callback(button_cb); - topb = new Fl_Toggle_Button(150,75,50,25,"top"); + topb = new Fl_Toggle_Button(125,75,50,25,"top"); topb->callback(button_cb); - bottomb = new Fl_Toggle_Button(200,75,50,25,"bottom"); + bottomb = new Fl_Toggle_Button(175,75,50,25,"bottom"); bottomb->callback(button_cb); - insideb = new Fl_Toggle_Button(250,75,50,25,"inside"); + insideb = new Fl_Toggle_Button(225,75,50,25,"inside"); insideb->callback(button_cb); + overb = new Fl_Toggle_Button(275,75,100,25,"text over"); + overb->callback(button_cb); window.resizable(window); window.end(); window.show(argc, argv); @@ -137,5 +137,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: bitmap.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $". +// End of "$Id: bitmap.cxx,v 1.4.2.3.2.1 2001/08/05 23:58:54 easysw Exp $". // |
