summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-04-19 07:01:24 +0000
committerBill Spitzak <spitzak@gmail.com>1999-04-19 07:01:24 +0000
commitadd808d7c28d572090846322575f0a85a1f70ff4 (patch)
tree0b582cc4ffc05e68c7c214b2d1f51bc52c0db9b9 /test
parent405f8fba3a14a50bd0340be93eb39e1ede938112 (diff)
Changes to Fl_Menu_::add() so that you should be able to add to any menu,
including one that was set with menu(). It copies the static menu if necessary and keeps track of the size of the menu so it can reallocate the array exactly when necessary. This should make modifying the items in a menu much more predictable and usefule. I don't know if these changes will go cleanly into 2.0. Probably not. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/subwindow.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/subwindow.cxx b/test/subwindow.cxx
index 52a3292bc..9560dd7d7 100644
--- a/test/subwindow.cxx
+++ b/test/subwindow.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: subwindow.cxx,v 1.5 1999/02/03 08:43:35 bill Exp $"
+// "$Id: subwindow.cxx,v 1.5.2.1 1999/04/19 07:01:24 bill Exp $"
//
// Nested window test program for the Fast Light Tool Kit (FLTK).
//
@@ -165,10 +165,11 @@ int main(int, char **) {
popup = new Fl_Menu_Button(0,0,400,400);
popup->type(Fl_Menu_Button::POPUP3);
popup->add("This|is|a popup|menu");
+ popup->add(bigmess);
window->show();
return Fl::run();
}
//
-// End of "$Id: subwindow.cxx,v 1.5 1999/02/03 08:43:35 bill Exp $".
+// End of "$Id: subwindow.cxx,v 1.5.2.1 1999/04/19 07:01:24 bill Exp $".
//