![]() |
|
#1
|
|||
|
|||
Fltk app in system tray?Basicly I need to know if there is any way to hide all fltk windows with out it closing its self.
If so this would be a great help so I can put my app in the tray. I'm using fltk 2.0 and win2k sp4 |
|
#2
|
|||
|
|||
|
Quote:
Yes, you can. FLTK merely leaves fltk::run() when all windows are closed. It does not call exit() or anything similar. But since you do not have a window anymore, you will not get any message handling either. I am sure that MSWindows has some mechanism for apps in the tray, however that is not built into FLTK. |
|
#3
|
|||
|
|||
|
As far as I can tell when all windows are hidden in fltk 2.0 the program closes and I can not seem to find a way around it.
If any one could post some example code that would be great. |
|
#4
|
|||
|
|||
Re: Fltk app in system tray?resourcefile.rc
Code:
somwhere in somefile.c Code:
Of course there is no handling of the icon, but you might want to pick yourself up a copy of the win32 api docs. http://www.mingw.org has one. |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| How to minimize a application to the system tray? | Thomas555 | C++ Forum | 12 | 20-May-2005 14:35 |
| FLTK2 setting input value of an FLTK Input field causes system to crash. | Gutty | FLTK Forum | 0 | 06-Apr-2005 14:30 |
| Track change in system time | Poolan | C++ Forum | 3 | 19-Nov-2004 05:08 |
| Welcome to the FLTK Forums | dsmith | FLTK Forum | 0 | 08-Sep-2004 07:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The