When I try to call SCI_MARKERSETALPHA on a marker with type explicitly set to SC_MARK_BACKGROUND the marker no longer draws at all. The same does work for markers of any other type that implicitly draw the line background because the symbol margin is hidden.
Here is a picture of SC_MARK_BACKGROUND with an alpha of 0x40.
It may depend on
your platform or(edited: implicits do work, so platform is doing alpha) other settings.Last edit: Neil Hodgson 2019-10-18
I'm sorry. It also seems to depend on the margin settings. When I revert to the default margin settings with a symbol margin visible it works again. I suspect that it's the same condition that makes the other markers automatically switch to background markers.
Its a complex case as it isn't drawn with the rest of the markers in LineMarker::Draw and depends on ViewStyle::Background instead. Possibly an issue with the masks calculated in ViewStyle::CalculateMarginWidthAndMask?
This is the code I use to experiment with markers in SciTE
That looks like this without a symbol margin:

Hmm... I'm not sure what's going on. I may try to dig a little deeper. It's not a high priority since I can work around it.
Closing as it does work for me and there have been no more details to enable reproducing problem.