Esempio n. 1
0
 private void btnShowMathDraw_Click(object sender, RoutedEventArgs e)
 {
     if (mathInput == null)
     {
         mathInput = new MathInputControl();
         //mathInput.SetOwnerWindow(rezEntrySplitter.Panel1.Handle.ToInt32());
         mathInput.Insert += new _IMathInputControlEvents_InsertEventHandler(mathInput_Insert);
         mathInput.Close += new _IMathInputControlEvents_CloseEventHandler(mathInput_Close);
     }
     mathInput.Show();
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ctrl = new MathInputControlClass();
            ctrl.EnableExtendedButtons(true);
            ctrl.EnableAutoGrow(true);
            ctrl.Close  += () => Application.ExitThread();
            ctrl.Insert += new _IMathInputControlEvents_InsertEventHandler(ctrl_Insert);
            ctrl.SetCaptionText("Copy LaTeX Formular to Clipboard");
            ctrl.Show();
            Application.Run();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);

              ctrl = new MathInputControlClass();
              ctrl.EnableExtendedButtons(true);
              ctrl.EnableAutoGrow(true);
              ctrl.Close += () => Application.ExitThread();
              ctrl.Insert += new _IMathInputControlEvents_InsertEventHandler(ctrl_Insert);
              ctrl.SetCaptionText("Copy LaTeX Formular to Clipboard");
              ctrl.Show();
              Application.Run();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            _mipControl = new MathInputControlClass();
            var centerOfScreen = Screen.AllScreens[0].WorkingArea.Center();
            _mipControl.CenterOn(centerOfScreen);
            _mipControl.EnableExtendedButtons(true);
            _mipControl.EnableAutoGrow(true);
            _mipControl.Close += Application.ExitThread;
            _mipControl.Insert += OnInsert;
            _mipControl.SetCaptionText("Copy Formula to Clipboard");
            _mipControl.Show();

            Application.Run();
        }
Esempio n. 5
0
        public MathInputPanelWrapper(String caption = null)
        {
            caption = caption ?? Messages.DrawExpression;

            try
            {
                _panel = new MathInputControl();
                _panel.SetCaptionText(caption);
                _panel.EnableExtendedButtons(true);
                _panel.Insert += Insert;
                _panel.Close  += Close;
                IsAvailable    = true;
            }
            catch (Exception ex)
            {
                Trace.WriteLine("MATH INPUT PANEL COULD NOT BE LOADED... See exception for details.");
                Trace.WriteLine(ex);
                IsAvailable = false;
            }
        }