Default IconObj in SysTrayItem

Using (or providing) components based on the "Win32" framework

Default IconObj in SysTrayItem

Postby ray on Thu Sep 19, 2019 2:42 pm

I am creating a Popup SystemTrayItem using
Windows-64 17.0.33755.0 W Development
under Windows 7 and Windows 10 with the following code

Code: Select all
 Popup arg
⍝ Monitor for "Request to close" via ⎕DQ in system tray icon
 '#.Tray'⎕WC'SysTrayItem'('Tip' 'ANTS is running')('Popup' 'Tray.m')
 '#.Tray.m.s'⎕WC'MenuItem' 'QUIT'('Event' 'Select' '#.Quit')
 '#.Tray.m.about'⎕WC'MenuItem' 'About Dyalog'('Event' 'Select' '[About]')
 :While 1<⍴⎕TNUMS
Code: Select all
 res←'Q'#.DLLS.Win_msg' Are you sure you want to exit Ants?'
 :If res≡1

The SysTrayItem object appears as an icon in the Windows System Tray.
The IconObj property specifies the name of an Icon object used to display the SysTrayItem. If not specified, the default is the standard Dyalog APL icon.

This code works except that the "standard Dyalog APL icon" is invisible/transparent!

You can click on the location in the system tray where the icon should appear (even though you cannot see it) and the Popup window appears.

Have I done something wrong? Do I need to specify the IconObj explicitly?

Ray Cannon
Please excuse any smelling pisstakes.
User avatar
Posts: 181
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Return to Windows: GUI, COM/OLE/ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest