コード例 #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;
        }
コード例 #2
0
ファイル: IMEApplication.cs プロジェクト: MIliev11/Samples
        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;
        }