Posted 19 years ago
by tobias weltner
I am still trying to figure out how to create my own line indicators and got halfway stuck.
I inherited from spanindicators and was able to draw a glyph from an image list alright.
However, the squiggle line wasn't there I was used from the predefined line indicators.
So I inherited from squigglelineindicator as such:
Public Class cSyntaxErrorSpanIndicator
Inherits SquiggleLineIndicator
Sub New()
MyBase.new("myerr", 100, Color.Red) 'True, ActiproSoftware.SyntaxEditor.IndicatorMarks.Adornments)
End Sub
Protected Overrides Sub DrawGlyph(ByVal g As System.Drawing.Graphics, ByVal bounds As System.Drawing.Rectangle)
'MyBase.DrawGlyph(g, bounds)
Dim ico As Icon
ico = Icon.FromHandle(DirectCast(Form1.PIDImages.Images(2), Bitmap).GetHicon)
g.DrawIcon(ico, bounds)
End Sub
End Class
However, now the indicator does not draw the glyph anymore.
What am I doing wrong?? There does not seem to be a DrawGlyph...?!
[Modified at 08/01/2005 06:29 AM]
I inherited from spanindicators and was able to draw a glyph from an image list alright.
However, the squiggle line wasn't there I was used from the predefined line indicators.
So I inherited from squigglelineindicator as such:
Public Class cSyntaxErrorSpanIndicator
Inherits SquiggleLineIndicator
Sub New()
MyBase.new("myerr", 100, Color.Red) 'True, ActiproSoftware.SyntaxEditor.IndicatorMarks.Adornments)
End Sub
Protected Overrides Sub DrawGlyph(ByVal g As System.Drawing.Graphics, ByVal bounds As System.Drawing.Rectangle)
'MyBase.DrawGlyph(g, bounds)
Dim ico As Icon
ico = Icon.FromHandle(DirectCast(Form1.PIDImages.Images(2), Bitmap).GetHicon)
g.DrawIcon(ico, bounds)
End Sub
End Class
However, now the indicator does not draw the glyph anymore.
What am I doing wrong?? There does not seem to be a DrawGlyph...?!
[Modified at 08/01/2005 06:29 AM]