![]() |
|
#1
|
|||
|
|||
Fl_Help_View makes mouse cursor appearHi all,
I am developing an application that runs on a 8" touch screen using fltk 1.1. In my application I create two Fl_Group: main_group which is the main interface, containing only buttons and some labels; help_group which has an exit button and a Fl_Help_View widget which loads an external html file. When the main window shows (with main_group being visible and help_group hidden), I use the following code to hide mouse cursor from Xorg: fl_cursor(FL_CURSOR_NONE, FL_BLACK, FL_WHITE) This works as expected --- no black cross cursor shows on the screen. But as soon as I activate the help_group, the mouse cursor appears, and it won't go away even I go back to the main_group [ by main_group->show(); help_group->hide() ] , the mouse cursor remains on the screen. I can make the cursor disappear after going back to the main_group by calling the same fl_cursor() above after help_group->hide(). But the cursor still remains on help_group whenever help_group is made visible. I think the the problem is caused by Fl_Group_View but I don't know if it's posible to make the cursor disappear completely. Any suggestions/help is appreaciated. |
|||
|
#2
|
|||
|
|||
Re: Fl_Help_View makes mouse cursor appearOK maybe my question is too complicated. Let me simplify it to:
How can I make cursor invisible in Fl_Help_View? |
|
#3
|
|||
|
|||
Re: Fl_Help_View makes mouse cursor appearAfter looking at the source code of Fl_Help_View, I came up with this (not quite perfect yet) solution:
CPP / C++ / C Code:
It makes the cursor disappear completely -- that's exactly what I want. But links in the Fl_Help_View window are no longer working since I cannot call the private Fl_Help_View::handle(e) method in the subclass. I don't know why Fl_Help_View makes handle() private [ it's the case in both fltk 1.1 and fltk2 ] because I have worked with Fl_Button, Fl_Box and handle() is defined as public in them. |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Generating Window Procedure mouse WPARAM from Hooks | seaders | MS Visual C++ / MFC Forum | 0 | 24-Mar-2009 09:42 |
| Detecting keyboard and mouse | sameer.nalawade | C Programming Language | 0 | 22-Nov-2008 00:35 |
| Bad buy: Gigabyte Mouse Model GM-M5000 | admin | Computer Hardware Forum | 2 | 22-Oct-2007 18:57 |
| How to move with mouse, drawn line. | stormlab | C++ Forum | 0 | 01-Apr-2006 12:20 |
| [Program/Tutorial] RandMouse | aaroncohn | C Programming Language | 5 | 17-Dec-2004 19:22 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The