diff options
| author | j-p <jp.bruyere@live.be> | 2016-08-02 00:25:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-02 00:25:42 +0200 |
| commit | 7aa1b2660fa257e570fb75f4c03bb33f1d7d151e (patch) | |
| tree | 639804dec0ca0d0cfd96cec38489808f9fce197e /src/GraphicObjects/Label.cs | |
| parent | fd5b776826028a0c12a92f11d1daf4065d4c6024 (diff) | |
| parent | 77f7028debf55a8d6faff8e88c18e33500867774 (diff) | |
Merge pull request #13 from jpbruyere/UpdateQueuingReview
Update queuing review and styling debug
Diffstat (limited to 'src/GraphicObjects/Label.cs')
| -rw-r--r-- | src/GraphicObjects/Label.cs | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/GraphicObjects/Label.cs b/src/GraphicObjects/Label.cs index 505bd69e..2f5798ee 100644 --- a/src/GraphicObjects/Label.cs +++ b/src/GraphicObjects/Label.cs @@ -79,7 +79,7 @@ namespace Crow return; selColor = value; NotifyValueChanged ("SelectionBackground", selColor); - RegisterForGraphicUpdate (); + RegisterForRedraw (); } } [XmlAttributeAttribute][DefaultValue("White")] @@ -90,7 +90,7 @@ namespace Crow return; selFontColor = value; NotifyValueChanged ("SelectionForeground", selFontColor); - RegisterForGraphicUpdate (); + RegisterForRedraw (); } } [XmlAttributeAttribute][DefaultValue(Alignment.Left)] @@ -101,8 +101,7 @@ namespace Crow if (value == _textAlignment) return; _textAlignment = value; - RegisterForGraphicUpdate (); - RegisterForGraphicUpdate (); + RegisterForRedraw (); NotifyValueChanged ("TextAlignment", _textAlignment); } } @@ -113,7 +112,7 @@ namespace Crow if (horizontalStretch == value) return; horizontalStretch = value; - RegisterForGraphicUpdate (); + RegisterForRedraw (); NotifyValueChanged ("HorizontalStretch", horizontalStretch); } } @@ -124,8 +123,8 @@ namespace Crow if (verticalStretch == value) return; verticalStretch = value; + RegisterForRedraw (); NotifyValueChanged ("VerticalStretch", verticalStretch); - } } [XmlAttributeAttribute][DefaultValue("label")] @@ -147,9 +146,8 @@ namespace Crow lines = getLines; - this.RegisterForGraphicUpdate (); - this.RegisterForLayouting (LayoutingType.Sizing); NotifyValueChanged ("Text", _text); + RegisterForGraphicUpdate (); } } [XmlAttributeAttribute][DefaultValue(false)] @@ -598,7 +596,7 @@ namespace Crow SelBegin = new Point(0,0); SelRelease = new Point (lines.LastOrDefault ().Length, lines.Count-1); - RegisterForGraphicUpdate (); + RegisterForRedraw (); } public override void onUnfocused (object sender, EventArgs e) { @@ -606,7 +604,7 @@ namespace Crow SelBegin = -1; SelRelease = -1; - RegisterForGraphicUpdate (); + RegisterForRedraw (); } public override void onMouseMove (object sender, MouseMoveEventArgs e) { @@ -617,7 +615,7 @@ namespace Crow updatemouseLocalPos (e.Position); - RegisterForGraphicUpdate(); + RegisterForRedraw(); } public override void onMouseDown (object sender, MouseButtonEventArgs e) { @@ -626,7 +624,7 @@ namespace Crow SelBegin = -1; SelRelease = -1; SelectionInProgress = true; - RegisterForGraphicUpdate();//TODO:should put it in properties + RegisterForRedraw();//TODO:should put it in properties } //done at the end to set 'hasFocus' value after testing it @@ -641,7 +639,7 @@ namespace Crow updatemouseLocalPos (e.Position); SelectionInProgress = false; - RegisterForGraphicUpdate (); + RegisterForRedraw (); } #endregion |