Sign in to follow this  
Followers 0
Diana (Cda)

Systray - icons possible _within_ gui itself?

3 posts in this topic

As usual, I've done a search on the forum but the results I get have to do with the old systray gui icon issue which is something that I, thankfully, seem to have mastered some time back.

For a script that resides in the sytray and that we can launch other items from, is there a way to code the entries so that each line displayed in the "systray popup" shows its own icon? Right now I just have lines of text. I have to add a few more entries to it and it would seriously make it easier to work with if the entries could also have an identifying icon.

The code for the systray gui begins like this:

#include <GuiConstants.au3>
;*****===== Tray "context menu": =====*****=====*****=====*****=====*****=====*****=====*****=====*
Opt("GuiOnEventMode", 1)
Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 1)
;--------------------------------------------------------------------------------------------------
TrayCreateItem($TrayTitle)
TrayCreateItem("")     ; creates a "separator" line between  items in tray menu
;--------------------------------------------------------------------------------------------------

If this is something that can be done, hopefully just knowing what the code name to search for is all I need to get going with modifying the script.

Thanks!

:x

Share this post


Link to post
Share on other sites



Diana (Cda),

Yashied posted this a few days ago - looks like just what you need. :x

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Diana (Cda),

Yashied posted this a few days ago - looks like just what you need. :x

M23

Hi, thanks!

The only thing that concerns me is this:

Note that icons will only work in Windows Vista and later.

I have Windows XP. So will take a look at it but not sure it's going to work. Darn.

Also, sounds like a big job since it goes on to say "Also need a library."

Well, I'll cross that bridge when I get to it.

Thanks and cheers,

:P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0