Example #1
0
        /// <summary>
        /// Handle when IMESample is created
        /// </summary>
        protected override void OnCreate()
        {
            base.OnCreate();
            InputMethodEditor.Create();
            // Set the necessary callback functions
            RegisterCallback();

            Window.Instance.KeyEvent += OnKeyEvent;
            Window.Instance.Resized  += OnResized;
        }
Example #2
0
        protected override void OnPreCreate()
        {
            Application.ClearCurrent();

            /*
             * Since the IMEWindow class acquires window handle from InputMethod module and
             * the handle is created internally when calling InputMethodEditor.Create() function,
             * this needs to be called BEFORE creating new IMEWindow instance.
             */
            InputMethodEditor.Create();
            MainWindow = InputMethodEditor.GetMainWindow();
            MainWindow.IndicatorMode = IndicatorMode.Hide;
        }