From e7c93053b64e72a0321db09a5675ba58c040567e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 14 Nov 2010 11:02:18 +0000 Subject: Added visual indication for buttons activated by a keyboard shortcut (STR 2372 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/buttons.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/buttons.cxx b/test/buttons.cxx index e4440e0d2..66827c17f 100644 --- a/test/buttons.cxx +++ b/test/buttons.cxx @@ -39,7 +39,8 @@ int main(int argc, char ** argv) { Fl_Window *window = new Fl_Window(320,130); - (new Fl_Button(10, 10, 130, 30, "Fl_Button"))->tooltip("This is a Tooltip."); + Fl_Button *b = new Fl_Button(10, 10, 130, 30, "Fl_Button"); + b->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"); -- cgit v1.2.3