Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsSystemTrayMBS class.

WindowsSystemTrayMBS.Add as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows System Tray MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Adds the item to the system tray.
Example
dim e as WindowsSystemTrayMBS // your system tray object

if e.add then
list.addrow "Added icon."
else
list.addrow "Failed to add icon."
end if

Returns true if successfull.
You can change the Icon&Mask or the Tooltip string.

WindowsSystemTrayMBS.Modify as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows System Tray MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Modifies the item to the system tray.

Returns true if successfull.
You can change the Icon&Mask or the Tooltip string.

WindowsSystemTrayMBS.Remove as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows System Tray MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Removes the item from the system tray.

Returns true if successfull.

WindowsSystemTrayMBS.SetFocus as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows System Tray MBS Win Plugin 7.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This method resets focus back to the system try area.

May be useful to call as cleanup after some context menu was shown.

WindowsSystemTrayMBS.SetIconFile(IconFile as FolderItem, IconID as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows System Tray MBS Win Plugin 7.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads an icon from the given file.
Example
dim wst as WindowsSystemTrayMBS // your system tray

call wst.SetIconFile(file,1)

Returns true on success and false on failure.
What image depths are used and supported depends on the Windows version.
IconID = 0 points to the first icon in the file.

The icon file can be .ico, .exe, .dll or similar files with windows icon resource.

Some examples using this method:

WindowsSystemTrayMBS.SetIconPicture(Icon as picture, Mask as picture) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows System Tray MBS Win Plugin 7.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads the icon from the given picture with mask.
Example
dim myicon as picture // your picture
dim mymask as picture // the mask for the picture
dim wst as WindowsSystemTrayMBS // your system tray

call wst.SetIconPicture(myicon, mymask)

Returns true on success and false on failure.
What image depths are used and supported depends on the Windows version.

Type is 0 for a small icon and 1 for a big icon.

Some examples using this method:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...