Murga-Projects Forums
Tray Icons or Tray Controls is Possible in FLTK - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Tray Icons or Tray Controls is Possible in FLTK (/showthread.php?tid=259)


Tray Icons or Tray Controls is Possible in FLTK - xleitex - 12-22-2007 11:29 PM

HI all, heres me again...

After a long time programing in lua for web pages, my interest in desktop applications come back!...so i search for a way to set my lua application to a tray icon...'cuz this script do several atomated things, so user can set some tasks and configure it then, so a tray icon will show status, some options after they click in it, there are a solution?

Thx in Advanced...sorry for my poor inglish![/font]


RE: Tray Icons or Tray Controls is Possible in FLTK - JohnMurga - 01-04-2008 09:21 PM

xleitex Wrote:
HI all, heres me again...

After a long time programing in lua for web pages, my interest in desktop applications come back!...so i search for a way to set my lua application to a tray icon...'cuz this script do several atomated things, so user can set some tasks and configure it then, so a tray icon will show status, some options after they click in it, there are a solution?

Thx in Advanced...sorry for my poor inglish![/font]


Sorry for delay in replying ...

Unfortunately there is no way to a tray icon in murgaLua yet.

Cheers
JohnM


RE: Tray Icons or Tray Controls is Possible in FLTK - Xleite - 01-19-2008 10:47 PM

...

Very nice mam...There is a possible update to use Tray Icons in Murga Lua...i was wondering about this, i was searching for a Lua Gui who have this feature...so i dont have success, Wx is Biggest than Fltk and keep Lua philosophy..."be small", but have a Tray function...with their bugs but have it, Gtk2...i cant compile it yet...i found a very quite example to use tray icons "tray controls" in Fltk, right...


...So if u'll say that this feature can be add on MurgaLua 0.7 ill be very happy...


RE: Tray Icons or Tray Controls is Possible in FLTK - JohnMurga - 01-19-2008 11:46 PM

Hi,

Mi initial reply was going to be :

Quote:
This feature would be inherently non-portable, implementing it for Windows is easy ... Linux would be a little harder (I'd have to look at how "AllTray" does it), and Mac doesn't even have a system tray does it ? (I don't know MacOS that well, maybe it does).

The source at http://www.imm.uklinux.net/fl_tray_icon.html could easily be converted to run as a murgaLua module (a lua module compiled for murgaLua), but it is something that I don't think I'll have time for any time soon ...


Actually ... It is so trivial for Windows that I might just write the module :-)

No promises as to when I'll get time though ...

Cheers
John de Murga