From 4663981310facfc5ec78adc05bc1606deb696c38 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 4 Nov 2005 08:23:20 +0000 Subject: 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 --- test/cube.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/cube.cxx') 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; -- cgit v1.2.3