aMule Forum

English => Feature requests => Topic started by: Fabioamd87 on July 17, 2009, 12:23:16 AM

Title: icons in tray entries
Post by: Fabioamd87 on July 17, 2009, 12:23:16 AM
Is possible to have icon with each options in tray icon?
Title: Re: icons in tray entries
Post by: wuischke on July 17, 2009, 08:21:45 AM
Could you please explain this with an example? I'm not sure what you mean.
Title: Re: icons in tray entries
Post by: Fabioamd87 on July 20, 2009, 09:13:48 PM
I don't know if wxwidget permit it, but would be nice to see "images" in tray icon options.
Title: Re: icons in tray entries
Post by: wuischke on July 20, 2009, 09:26:12 PM
I'm sorry, I don't know what you mean with "tray icon options". Could you describe this further or add a picture?
Title: Re: icons in tray entries
Post by: GonoszTopi on July 20, 2009, 09:43:27 PM
I believe (s)he wants icon enhanced tray menu entries. Like right-click on tray icon, and the appearing menu has small descriptive icons besides the entries.
Title: Re: icons in tray entries
Post by: wuischke on July 20, 2009, 09:49:32 PM
Oh, please excuse me for not understanding. In retroperspective, this is clear.

To answer your question: wxwidgets allows adding images to menus. (ref (http://docs.wxwidgets.org/stable/wx_wxmenuitem.html#wxmenuitemsetbitmap)) This works only on Gtk+ and Windows, though.
Title: Re: icons in tray entries
Post by: Fabioamd87 on July 21, 2009, 07:42:26 PM
gtk+?
this mean that all should be rewritten to support gtk?
Title: Re: icons in tray entries
Post by: wuischke on July 21, 2009, 07:50:03 PM
Well, wxWidgets use different graphical libraries on each platform.

For Mac, there's wxMac using Carbon (http://en.wikipedia.org/wiki/Carbon_(API)) and in development wxCocoa using Cocoa (http://en.wikipedia.org/wiki/Cocoa_(API)). According to the wx documentation, neither of these libraries support adding bitmaps to menus.

On Linux, wxWidgets uses GTK+ to display all elements like buttons, text fields, and so on. This means the programmer writes the code for wxWidgets and wxWidgets uses GTK+ to display everything.

On Windows, wxWidgets uses the Windows API. Applications written with wxWidgets look exactly like other Windows Application.

wxGTK (Linux and GTK+)and wxMSW (Windows) support images in a menu.
Title: Re: icons in tray entries
Post by: Fabioamd87 on July 23, 2009, 02:10:41 AM
ok, nice, I think that for now we could make icons on Linux no?  :P
Title: Re: icons in tray entries
Post by: wuischke on July 23, 2009, 09:46:05 AM
It's possible, but no promises. You're always free to provide a patch, though. :)
Title: Re: icons in tray entries
Post by: ^marcell^ on July 23, 2009, 12:48:45 PM
Hehe, I usually don't expect people to provide a solution after them posting a request in this section. But it would be nice, no doubt about that.

My question is: Fabioamd87 do you have any examples or preferences how these icons should look like?
Title: Re: icons in tray entries
Post by: Fabioamd87 on July 23, 2009, 04:47:06 PM
IMHO the option "shouw" should be deleted,
anyway icon "exit" are common in the desktop manager icon set.
disconnect can be the same as amule theme.
and the first option? called "amule 2.2.5" What it does? Nothing...
Title: Re: icons in tray entries
Post by: Kry on July 24, 2009, 12:56:33 AM
It's not an option, it's the menu title.

Adn removing "Show" would be disastrous in a lot of ways for a lot of people...
Title: Re: icons in tray entries
Post by: ^marcell^ on July 25, 2009, 12:51:32 AM
and the first option? called "amule 2.2.5" What it does? Nothing...
That text let's you associate the menu with the application. It's there for every context menu in aMule too.
Perhaps something like this is what you desire: click to see context menu (http://3.bp.blogspot.com/_ewREQ2z7SjM/SJBLCO6kvuI/AAAAAAAABU0/QhpNS9CMPhk/s400/eMule%2B0.49b%2Bno%2Bratio%2Btray.png).
Title: Re: icons in tray entries
Post by: Fabioamd87 on May 27, 2010, 12:37:40 PM
yes.