diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-11-04 08:23:20 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-11-04 08:23:20 +0000 |
| commit | 4663981310facfc5ec78adc05bc1606deb696c38 (patch) | |
| tree | a6d24745eab0a7fdd2317af02eb15d8ab6a37a12 /test/cube.cxx | |
| parent | fa517add2ed4f5d08e5023c998ff7965e18f61e4 (diff) | |
STR #1061: fixed Fl_Window::cursor for subwindows and GL windows on WIN32
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/cube.cxx')
| -rw-r--r-- | test/cube.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cube.cxx b/test/cube.cxx index 9abf442ad..09e50f5b6 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -54,6 +54,7 @@ public: class cube_box : public Fl_Gl_Window { void draw(); + int handle(int); public: double lasttime; int wire; @@ -123,6 +124,14 @@ void cube_box::draw() { glEnable(GL_DEPTH_TEST); } +int cube_box::handle(int e) { + switch (e) { + case FL_ENTER: cursor(FL_CURSOR_CROSS); break; + case FL_LEAVE: cursor(FL_CURSOR_DEFAULT); break; + } + return Fl_Gl_Window::handle(e); +} + #endif Fl_Window *form; |
