When my program is run it places a special icon on the Workbench using SetWBIcon(). I'm using MUIRoyale with a Hollywood gadget within the display. I want to open the MUI window when the WBIcon is double-clicked and close the MUI window when the close button is pressed. I thought that double-clicking the WBIcon would send a ShowWindow event so this would be easy. Unfortunately, if you run the following code and double-click the WBIcon you'll see that you get no notification. I've worked a couple of days now on this using multiple displays (like a 1x1 white pixel in the menu bar) and such but to no avail so far. How do I get notified when the WBIcon is double-clicked? Thanks.
From what I can tell MUIRoyale's Application.Icon for MUI 3.8 doesn't allow mui.Set() to set an icon programmatically (it is I; set at creation time), doesn't allow changing the name under the icon, and doesn't allow it to be permanently displayed; it is only present when the app is iconified. SetWBIcon() allows all of these things.
Oh, actually, this seems to be a Hollywood bug. I've just seen that your MCVE doesn't use MUI Royale at all but still it doesn't work. It only works if the display is not hidden initially but as soon as you set "Hidden" to TRUE the events won't come through. That's definitely a Hollywood bug. Will be fixed.