Hey guys,
I’m using Daniel Taylor’s web custom controls so I can have some more flexible CSS styles in my app than having to define everything at design time with Xojo styles. It’s working pretty well, but…
Im trying to set some text to underlined and am not having any success. Im trying both:
TextObject.TextDecorationTD(underline)
and
TestObject.SetStyleTD(text-decoration,underline)
And neither work. Looking in the CSS in the browser, its there correctly .
<div id="GGCG48eD" class="cssWebStyleExtDemo" style="opacity: 1; visibility: visible; font-family: serif; font-size: 120%; text-align: left; border-width: inherit; border-style: inherit; text-shadow: inherit; background-image: inherit; font-weight: bold; text-decoration: underline; background-repeat: inherit inherit;">
<div style="position: absolute; left: 0px; right: 0px; top: 0px; overflow: hidden; bottom: 0px;" class="">
<p style="margin: 0px;" class="">
WebStyle And Direct<br>This WebLabel should be affected by changes to the WebStyle or direct changes. Direct changes override the WebStyle.
</p>
</div>
</div>
But its not underlining. I have tested the browser itself using the try-it function at w3schools.com and that works fine - so Im thinking its something with Xojo?
I’ve noticed that setting underlined in Xojo’s own styles doesn’t always work either. But since the css is shown text-decoration: underline
correctly, I’m not sure why it would be a Xojo thing as we are at the browser level here…