Beispiel #1
0
        public OnScreenKeyboard(string content, int cellsPerRow)
            : base(new BorderLayout())
        {
            focusManager = new FocusManager();
            navigator    = new IndexNavigator(focusManager);
            triggers     = new NavigationTriggers();

            navigator.OnNavigate += OnNavigate;

            textField = new TextField("kirjota");
            textField.CurrentProcessor.IsTravelsingEnabled    = false;
            textField.CurrentProcessor.IsCopyPasteEnabled     = false;
            textField.CurrentProcessor.IsTextSelectionEnabled = false;
            textField.Size = new ControlSize(0, 50);

            AddControl(textField, BorderLayout.Down);
            textField.Focus();

            Content     = content;
            CellsPerRow = cellsPerRow;

            Enabled = true;
            Visible = true;
        }
Beispiel #2
0
 public void Navigate(NavigationTriggers navigationTriggers)
 {
     Navigate(navigationTriggers.ToString());
 }