// We take both the EditorForm's handle and its displayPanel handle, since messages
 // will sometimes be for the form, or the display panel.
 public MessageHandler( Panel displayPanel, EditorForm parent )
 {
     m_fakeFocus = false;
     m_displayPanel = displayPanel;
     m_parent = parent;
     m_mouseDownPosition = new System.Drawing.Point(0, 0); 
 }
Beispiel #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            EditorForm form = new EditorForm();

            // Hook up our message handler
            MessageHandler messageHandler = form.GetMessageHandler();
            Application.AddMessageFilter(messageHandler);
            Application.Idle += new EventHandler(messageHandler.Application_Idle);
            Application.Run(form);
        }
Beispiel #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            EditorForm form = new EditorForm();

            // Hook up our message handler
            MessageHandler messageHandler = form.GetMessageHandler();

            Application.AddMessageFilter(messageHandler);
            Application.Idle += new EventHandler(messageHandler.Application_Idle);
            Application.Run(form);
        }