summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-01 21:24:49 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-01 21:24:49 +0000
commitbd069130577e28b3b26dbb5637bb3172fe108e81 (patch)
treefcf77d8c891ad889902cc4f606b348374f2691bb /test
parent3cb5ebe0e811f3db008085d985b7761725589a74 (diff)
First bunch of changes for the 1.1 branch - tooltips.
NOTE: looking into a problem with the tooltip not going away when you ESCape a window (close it)... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/buttons.cxx7
-rw-r--r--test/demo.cxx6
2 files changed, 8 insertions, 5 deletions
diff --git a/test/buttons.cxx b/test/buttons.cxx
index 5fb134c9b..30bb19149 100644
--- a/test/buttons.cxx
+++ b/test/buttons.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: buttons.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $"
+// "$Id: buttons.cxx,v 1.4.2.3.2.1 2001/08/01 21:24:49 easysw Exp $"
//
// Another button test program for the Fast Light Tool Kit (FLTK).
//
@@ -33,10 +33,11 @@
#include <FL/Fl_Check_Button.H>
#include <FL/Fl_Light_Button.H>
#include <FL/Fl_Round_Button.H>
+#include <FL/Fl_Tooltip.H>
int main(int argc, char ** argv) {
Fl_Window *window = new Fl_Window(320,130);
- new Fl_Button(10, 10, 130, 30, "Fl_Button");
+ (new Fl_Button(10, 10, 130, 30, "Fl_Button"))->tooltip("This is a Tooltip.");
new Fl_Return_Button(150, 10, 160, 30, "Fl_Return_Button");
new Fl_Repeat_Button(10,50,130,30,"Fl_Repeat_Button");
new Fl_Light_Button(10,90,130,30,"Fl_Light_Button");
@@ -48,5 +49,5 @@ int main(int argc, char ** argv) {
}
//
-// End of "$Id: buttons.cxx,v 1.4.2.3 2001/01/22 15:13:41 easysw Exp $".
+// End of "$Id: buttons.cxx,v 1.4.2.3.2.1 2001/08/01 21:24:49 easysw Exp $".
//
diff --git a/test/demo.cxx b/test/demo.cxx
index 4fea924aa..9ed05ab8b 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: demo.cxx,v 1.8.2.5 2001/01/22 15:13:41 easysw Exp $"
+// "$Id: demo.cxx,v 1.8.2.5.2.1 2001/08/01 21:24:49 easysw Exp $"
//
// Main demo program for the Fast Light Tool Kit (FLTK).
//
@@ -173,6 +173,8 @@ void push_menu(const char* nnn)
bn = numb2but(i,n-1);
but[bn]->show();
but[bn]->label(menus[men].iname[i]);
+ if (menus[men].icommand[i][0] != '@') but[bn]->tooltip(menus[men].icommand[i]);
+ else but[bn]->tooltip(0);
}
strcpy(stack[stsize],nnn);
stsize++;
@@ -332,6 +334,6 @@ int main(int argc, char **argv) {
}
//
-// End of "$Id: demo.cxx,v 1.8.2.5 2001/01/22 15:13:41 easysw Exp $".
+// End of "$Id: demo.cxx,v 1.8.2.5.2.1 2001/08/01 21:24:49 easysw Exp $".
//