diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-04 19:46:05 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-04 19:46:05 +0200 |
| commit | fc8f4f7a358640f8f6495397f822320f87018d04 (patch) | |
| tree | e185ab464f2cdfdf71ed473ca87d5044e6b04c23 /Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs | |
| parent | ecd2a6146289cd6b3c3dd7c1153a5f9da16dd69c (diff) | |
| download | Tango-fc8f4f7a358640f8f6495397f822320f87018d04.tar.gz Tango-fc8f4f7a358640f8f6495397f822320f87018d04.zip | |
Fixed issue with Start/Stop App Button on PPC.
Implemented new notifications design.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs index 8dc67aa4c..777e53ed0 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchTextBox.cs @@ -74,8 +74,17 @@ namespace Tango.Touch.Controls public int CaretIndex { - get { return _text_box.CaretIndex; } - set { _text_box.CaretIndex = value; } + get + { + return _text_box != null ? _text_box.CaretIndex : 0; + } + set + { + if (_text_box != null) + { + _text_box.CaretIndex = value; + } + } } static TouchTextBox() |
