From fd19c1fd6960faf9b7131a4dfade4bba95abcf81 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 18 May 2015 18:13:48 +0200 Subject: Simple bindings demonstration in testFps --- src/GraphicObjects/TextBox.cs | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'src/GraphicObjects/TextBox.cs') diff --git a/src/GraphicObjects/TextBox.cs b/src/GraphicObjects/TextBox.cs index 20403789..28e7c74c 100644 --- a/src/GraphicObjects/TextBox.cs +++ b/src/GraphicObjects/TextBox.cs @@ -15,7 +15,7 @@ namespace go public class TextBoxWidget : Label { #region CTOR - public TextBoxWidget(string _initialValue, GOEvent _onTextChanged = null) + public TextBoxWidget(string _initialValue) : base(_initialValue) { @@ -25,19 +25,6 @@ namespace go { } #endregion - static bool _capitalOn = false; //???????????????? - [XmlIgnore]public static bool capitalOn - { - get - { - return _capitalOn; - //Keyboard[Key.ShiftLeft] || Keyboard[Key.ShiftRight] ? - //!_capitalOn : _capitalOn; - } - set { _capitalOn = value; } - } - - #region GraphicObject overrides [XmlIgnore]public override bool HasFocus //trigger update when lost focus to errase text beam { @@ -71,23 +58,7 @@ namespace go protected override void onDraw (Context gr) { base.onDraw (gr); - // gr.FontOptions.Antialias = Antialias.Subpixel; - // gr.FontOptions.HintMetrics = HintMetrics.On; -// gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); -// gr.SetFontSize (Font.Size); - FontExtents fe = gr.FontExtents; - - - -// gr.MoveTo(rText.X, rText.Y + fe.Ascent); -// #if _WIN32 || _WIN64 -// gr.ShowText(txt); -// #elif __linux__ -// gr.ShowText(Text); -// #endif -// gr.Fill(); - } #endregion -- cgit v1.3.1-4-g156e