Hello,
I have a canvas (40x40) into which I want to draw a cautionIcon.
according to the the docs, this code in the paint event of the canvas should work:
g.drawCautionIcon(0,0)
yet nothing gets drawn, both with retina enabled and disabled.
So I tried:
g.DrawRect 0,0,me.Width,me.Heigh)//to see where the icon will actually be drawn
dim p as new Picture(me.Width,me.Height)
p.Graphics.DrawCautionIcon(0,0)//noteIcon, stopIcon
g.DrawPicture p,0,0
Now the icon is drawn, but at the bottom of the canvas, where only more or less half of it can be seen.
The same happens if I create a new picture and assign it as backdrop to the canvas.
Pretty sure I’m missing something. Suggestions will be welcome. Thanks.
Here’s the case I filed. <https://xojo.com/issue/43395> Sorry it’s titled “43395 - g.drawStopIcon no longer works” but it covers the caution triangle and the note icon.