diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-02 20:38:15 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-02 20:38:15 +0000 |
| commit | 18caedc1c55c6819456c83db3cc98866a7debbbb (patch) | |
| tree | 198e2cedd57cd22e792a1d5365eb27f09875987c /test/menubar.cxx | |
| parent | 28295ae0e903ffbce95424695e03744f78cdbd26 (diff) | |
Removed the "Microsoft" button from the menu demo.
Added a number check for the browser demo, and changed the input field
to an Int_Input widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/menubar.cxx')
| -rw-r--r-- | test/menubar.cxx | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx index 9def1d0eb..841e9e236 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -1,5 +1,5 @@ // -// "$Id: menubar.cxx,v 1.6.2.8 2001/01/22 15:13:41 easysw Exp $" +// "$Id: menubar.cxx,v 1.6.2.8.2.1 2001/11/02 20:38:15 easysw Exp $" // // Menubar test program for the Fast Light Tool Kit (FLTK). // @@ -164,24 +164,6 @@ Fl_Menu_Item pulldown[] = { Fl_Menu_* menus[4]; -// turn MicroSoft style on/off -void button_cb(Fl_Widget* w, void*) { - if (((Fl_Button*)w)->value()) { - for (int i = 0; i < 4; i++) { - menus[i]->down_box(FL_FLAT_BOX); - menus[i]->selection_color(137); - menus[i]->textfont(FL_HELVETICA); - } - } else { - for (int i = 0; i < 4; i++) { - menus[i]->down_box(FL_NO_BOX); - menus[i]->selection_color(FL_WHITE); - menus[i]->textfont(FL_BOLD|FL_ITALIC); - } - } - menus[0]->parent()->redraw(); -} - int main(int argc, char **argv) { //Fl::set_color(Fl_Color(15),0,0,128); for (int i=0; i<99; i++) { @@ -206,8 +188,6 @@ int main(int argc, char **argv) { mb.callback(test_cb); menus[3] = &mb; Fl_Box b(200,200,200,100,"Press right button\nfor a pop-up menu"); - Fl_Toggle_Button t(250,50,150,25,"MicroSoft Style"); - t.callback(button_cb); window.resizable(&mb); window.size_range(300,20); window.end(); @@ -216,5 +196,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: menubar.cxx,v 1.6.2.8 2001/01/22 15:13:41 easysw Exp $". +// End of "$Id: menubar.cxx,v 1.6.2.8.2.1 2001/11/02 20:38:15 easysw Exp $". // |
