I haven't found a way. What I'm looking for is the same shadow effect we can achieve in graphics. That means both the foreground and the background of the area the shadow occupies are dimmed, but still maintain the same color, just at a lesser intensity.
Now this gets a bit complicated in SCREEN 0.
1) Make hardware buttons mixed with software buttons and place them all on the screen.
2) Reverse the display order so the hardware images go to the bottom.
3) Make a software popup window that can be moved.
So what is needed in SCREEN 0 is for the popup shadow to be of enough transparency to achieve the previously mentioned results.
Usually in SCREEN 0 we just reprint the characters under the shadow in foreground grey and background black, or white on bright white, etc. That doesn't look quite so nice when the shadow appears over bright red on bright white or bright yellow on bright white, etc. A dimmer red and yellow with a grayish background would be ideal in this instance.
Now if we make the shadow a hardware image, the problem becomes the display order. It was reversed, so now the software buttons go over the shadow instead of under it. So dammit Pete, change the display order back.... Well, that would make the hardware buttons go over the popup (it's a software image, remember) so that would be an even bigger problem, which is why the order was reversed in the first place.
If there is a way to copy both the hardware and software images, already on the screen, to a _newimage 32 surface, and then copy that screen to memory, we'd have one big hardware image to use with the software screen 0 popup and its hardware shadow. In theory, that would visually work, but Is this possible?
Honestly I'd just convert the software buttons to all hardware buttons, but remember, there is also a lot of text to consider and that would not dim when shadowed.
I can see Steve racing for the aspirin bottle now! He needs a really big one, so he can throw it at me after he empties it. (Dammit Pete, just do everything in graphics!)
Pete
Edit: I did think up a tedious method that I believe would work and I know how to do. Make the whole popup a hardware image. The tedious part is it would need to be construct it in stages so when choices like cut, copy, etc. are or are not available, the correct popup gets displayed. So image copy two of every menu item, and "putimage' them together as per circumstances. Highlight the menu with the mouse by putimaging a transparent hardware 'shadow' over each menu choice. Doable, but pretty wonky.
Now this gets a bit complicated in SCREEN 0.
1) Make hardware buttons mixed with software buttons and place them all on the screen.
2) Reverse the display order so the hardware images go to the bottom.
3) Make a software popup window that can be moved.
So what is needed in SCREEN 0 is for the popup shadow to be of enough transparency to achieve the previously mentioned results.
Usually in SCREEN 0 we just reprint the characters under the shadow in foreground grey and background black, or white on bright white, etc. That doesn't look quite so nice when the shadow appears over bright red on bright white or bright yellow on bright white, etc. A dimmer red and yellow with a grayish background would be ideal in this instance.
Now if we make the shadow a hardware image, the problem becomes the display order. It was reversed, so now the software buttons go over the shadow instead of under it. So dammit Pete, change the display order back.... Well, that would make the hardware buttons go over the popup (it's a software image, remember) so that would be an even bigger problem, which is why the order was reversed in the first place.
If there is a way to copy both the hardware and software images, already on the screen, to a _newimage 32 surface, and then copy that screen to memory, we'd have one big hardware image to use with the software screen 0 popup and its hardware shadow. In theory, that would visually work, but Is this possible?
Honestly I'd just convert the software buttons to all hardware buttons, but remember, there is also a lot of text to consider and that would not dim when shadowed.
I can see Steve racing for the aspirin bottle now! He needs a really big one, so he can throw it at me after he empties it. (Dammit Pete, just do everything in graphics!)

Pete
Edit: I did think up a tedious method that I believe would work and I know how to do. Make the whole popup a hardware image. The tedious part is it would need to be construct it in stages so when choices like cut, copy, etc. are or are not available, the correct popup gets displayed. So image copy two of every menu item, and "putimage' them together as per circumstances. Highlight the menu with the mouse by putimaging a transparent hardware 'shadow' over each menu choice. Doable, but pretty wonky.