void ShowPopup()
        {
            if (_editorPopup == null)
            {
                CreatePopup();
            }
            if (_editor.IsPassword != Control.IsPassword)
            {
                _editor.IsPassword = Control.IsPassword;
            }

            _editor.Text = Control.Text;

            var edjeObj = Control.EdjeObject;

            edjeObj.GetColorClass("layout/editfield/bg",
                                  out int r, out int g, out int b, out int a,
                                  out _, out _, out _, out _,
                                  out _, out _, out _, out _);

            _defaultColor = new ElmSharp.Color(r, g, b, a);

            _editor.TextColor  = Control.TextColor;
            _editorPopup.Color = Control.BackgroundColor == default(ElmSharp.Color) ? _defaultColor : Control.BackgroundColor;

            _editor.MoveCursorEnd();
            _editor.ShowInputPanel();
        }
Esempio n. 2
0
        void ShowPopup()
        {
            if (_editorPopup == null)
            {
                CreatePopup();
            }
            _editor.IsPassword = Control.IsPassword;
            _editor.HorizontalTextAlignment = Control.HorizontalTextAlignment;

            _editor.Text         = Control.Text;
            _editor.TextChanged += PopupEntryTextChanged;
            _editor.Activated   += PopupEntryActivated;

            _editor.TextStyle  = Control.TextStyle;
            _editorPopup.Color = _popupBackgroundColor;

            _editor.MoveCursorEnd();
            _editor.ShowInputPanel();

            Control.TextChanged += OnTextChanged;
        }
Esempio n. 3
0
        void ShowPopup()
        {
            if (_editorPopup == null)
            {
                CreatePopup();
            }
            _editor.IsPassword = Control.IsPassword;
            _editor.HorizontalTextAlignment = Control.HorizontalTextAlignment;

            _editor.Text         = Control.Text;
            _editor.TextChanged += PopupEntryTextChanged;
            _editor.Activated   += PopupEntryActivated;

            DefaultColor       = new ElmSharp.Color(40, 40, 40, 255); //editfield bg default color
            _editor.TextStyle  = Control.TextStyle;
            _editorPopup.Color = Control.BackgroundColor == default(ElmSharp.Color) ? DefaultColor : Control.BackgroundColor;

            _editor.MoveCursorEnd();
            _editor.ShowInputPanel();
        }
Esempio n. 4
0
        void ShowPopup()
        {
            if (_editorPopup == null)
            {
                CreatePopup();
            }
            if (_editor.IsPassword != Control.IsPassword)
            {
                _editor.IsPassword = Control.IsPassword;
            }

            _editor.Text = Control.Text;

            DefaultColor       = new ElmSharp.Color(40, 40, 40, 255); //editfield bg default color
            _editor.TextColor  = Control.TextColor;
            _editorPopup.Color = Control.BackgroundColor == default(ElmSharp.Color) ? DefaultColor : Control.BackgroundColor;

            _editor.MoveCursorEnd();
            _editor.ShowInputPanel();
        }