I am using this code to create a text shadow on a desktop app with a canvas control. I’d like to know how to do this in a web app. The web app supports similar syntax, like a rectangle shadow, but not for text. Is there a solution using the “style” syntax?
Clearly you are correct. I know I tried some variation of this that didn’t error out. Maybe I left out the dash.
At any rate, I tried several orderings of this code:
I’m going to guess this doesn’t work because A. It’s in the wrong order or B. Mixing the “g” syntax with the CSS style.value syntax isn’t the way to do it. I tried to arrange it like I have it in the desktop version. I inverted the order but that didn’t help. Everything still works except for the shadow.
I could do this all with “style.value” except that this is a canvas and in CSS I’d need a “before” tag to insert text (I’m assuming).
If you have any thoughts on this, please advise at your convenience.
Your assistance so far is much appreciated. At least I know this CSS value is supported. I was just figuring text shadow wasn’t supported in Xojo web.
The text-shadow works with Text elements, like WebLabel.
I don’t have experience with graphics/Canvas. I don’t think text-shadow will work if you want to add a shadow to a graphics element. Sorry about that.
I understand graphics are differences between Desktop apps and Web apps. Maybe someone with more experience could give you an idea of why the code doesn’t produce the same result, if something needs to be adjusted, or if you need to file a bug/feature request case.
Oh yeah! It works with labels just fine! Works with buttons too, which is even more important!
That’s really all I need. If I need to put text in a canvas, I can create text with effects in Affinity or another graphics program.
You’ve given my Xojo web development program a giant push forward!