aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Label.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-06-06 11:37:41 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-06-06 11:37:42 +0200
commit0128eebf85f3a0c29b2e6b63f966ddd27205818c (patch)
treeb431e74f6a747c26dc7a0db03b0427943567370f /src/GraphicObjects/Label.cs
parenta7363d1f7e4eb1611e4ab522c8cf381b70570b7e (diff)
- generic conversion through Parse method for custom type xml
attribute
Diffstat (limited to 'src/GraphicObjects/Label.cs')
-rwxr-xr-xsrc/GraphicObjects/Label.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs
index c128929f..1e5332ca 100755
--- a/src/GraphicObjects/Label.cs
+++ b/src/GraphicObjects/Label.cs
@@ -405,14 +405,16 @@ namespace go
if (HasFocus)
{
//TODO:
- gr.Color = Color.White;
+ gr.Color = Foreground;
gr.LineWidth = 1.5;
gr.MoveTo(new PointD(textCursorPos + rText.X, rText.Y + currentLine * fe.Height));
gr.LineTo(new PointD(textCursorPos + rText.X, rText.Y + (currentLine + 1) * fe.Height));
gr.Stroke();
}
#endregion
-
+
+ //*******************
+ //debug selection
// gr.Color = Color.Green;
// Rectangle R = new Rectangle(
// rText.X + (int)SelEndCursorPos-10,
@@ -429,6 +431,7 @@ namespace go
// (int)fe.Height);
// gr.Rectangle(R);
// gr.Fill();
+ //*******************
gr.FontMatrix = new Matrix(widthRatio * Font.Size, 0, 0, heightRatio * Font.Size, 0, 0);