/// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            tmrApp = new System.Windows.Forms.Timer(components)
            {
                Interval = 2,
                Enabled = true
            };
            SuspendLayout();
            // 
            // tmrApp
            // 
            tmrApp.Tick += new System.EventHandler(tmrApp_Tick);
            // 
            // Maze_Form
            // 
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            BackColor = System.Drawing.Color.FromArgb(31,31,31);
            ClientSize = new System.Drawing.Size(484, 461);
            DoubleBuffered = true;
            KeyPreview = true;
            Name = "MazeForm";
            Text = "Maze AI";
            Load += new System.EventHandler(Form1_Load);
            Paint += new System.Windows.Forms.PaintEventHandler(Form1_Paint);
            KeyDown += new System.Windows.Forms.KeyEventHandler(Form1_KeyDown);
            MouseClick += new System.Windows.Forms.MouseEventHandler(Form1_LeftClick);
            MouseMove += new System.Windows.Forms.MouseEventHandler(Form1_MouseMove);
            Resize += new System.EventHandler(Form1_Resize);
            Shown += new System.EventHandler(OnShow);
            ResumeLayout(false);

        }
 public EditBlueprintScrapShapeGraphics()
     : base()
 {
     System.Windows.Forms.Application.Idle += delegate { Invalidate(); };
     MouseMove += new System.Windows.Forms.MouseEventHandler(EditBlueprintScrapShapeGraphics_MouseMove);
     MouseDown += new System.Windows.Forms.MouseEventHandler(EditBlueprintScrapShapeGraphics_MouseDown);
 }
 public EditBlueprintScrapShapeGraphics()
     : base()
 {
     System.Windows.Forms.Application.Idle += delegate { Invalidate(); };
     MouseMove += new System.Windows.Forms.MouseEventHandler(EditBlueprintScrapShapeGraphics_MouseMove);
     MouseDown += new System.Windows.Forms.MouseEventHandler(EditBlueprintScrapShapeGraphics_MouseDown);
 }
Example #4
0
        public override void InitEventListener()
        {
            Logger.logBegin("InitEventListener");
            Delegate objDlgt = new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);

            base.AddHandler(MarsTigerServerConst.CNST_EVNT_MOUSEDOWN, objDlgt);
        }
 public GUIEventHandlerSharpDX()
 {
     handlerUserResize = (sender, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.Resize, e));
     };
     handlerKeyDown = (s, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.KeyDown, e));
     };
     handlerKeyUp = (s, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.KeyUp, e));
     };
     handlerKeyPress = (s, e) =>
     {
         //OnWindowEvent(new RigelEGUIEvent(RigelEGUIEventType.KeyPress,e));
     };
     handlerMouseMove = (s, e) =>
     {
         if (e.Button == System.Windows.Forms.MouseButtons.Left)
         {
             PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseDragUpdate, e));
         }
         else
         {
             PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseMove, e));
         }
     };
     handlerMouseDown = (s, e) =>
     {
         var t = e;
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseDown, e));
     };
     handlerMouseUp = (s, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseUp, e));
     };
     handlerMouseClick = (s, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseClick, e));
     };
     handlerMouseDoubleClick = (s, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseDoubleClick, e));
     };
     handlerMouseWheel = (s, e) =>
     {
         PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseWheel, e));
     };
     handlerDragEnter = (s, e) =>
     {
         EditorUtility.Log("event drag enter");
     };
     handlerDragDrop = (s, e) =>
     {
         EditorUtility.Log("event drag drop");
     };
 }
Example #6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        public WinCtrlRoot(int width, int height)
            : base(width, height)
        {
            this.mouseMove = new System.Windows.Forms.MouseEventHandler(winCanvas_MouseMove);
            this.mouseDown = new System.Windows.Forms.MouseEventHandler(winCanvas_MouseDown);
            this.mouseUp   = new System.Windows.Forms.MouseEventHandler(winCanvas_MouseUp);
            this.keyDown   = new System.Windows.Forms.KeyEventHandler(winCanvas_KeyDown);
            this.keyUp     = new System.Windows.Forms.KeyEventHandler(winCanvas_KeyUp);
            this.resize    = new EventHandler(winCanvas_Resize);

            this.EnableRendering = ThreeFlags.Children;
        }
Example #7
0
        public LabelButton()
        {
            MouseLeave += new System.EventHandler(label1_MouseLeave);
            MouseDown += new System.Windows.Forms.MouseEventHandler(this.label1_MouseDown);
            MouseEnter += new System.EventHandler(this.label1_MouseEnter);
            MouseLeave += new System.EventHandler(this.label1_MouseLeave);
            MouseUp += new System.Windows.Forms.MouseEventHandler(this.label1_MouseUp);

            defalutColor = Color.Transparent;
            mouseEnterColor1 = Color.White;
            mouseDownColor1 = Color.FromArgb(54, 101, 179);
            borderColor1 = Color.Transparent;
        }
        protected override void Initialize()
        {
            if (!IsDesignerHosted)
            {
                _spriteBatch        = new SpriteBatch(GraphicsDevice);
                _backgroundRenderer = new BackgroundRenderer(_spriteBatch);

                System.Windows.Forms.Application.Idle += delegate { Invalidate(); };
                MouseMove          += new System.Windows.Forms.MouseEventHandler(BackgroundDisplay_MouseMove);
                FindForm().KeyDown += new System.Windows.Forms.KeyEventHandler(Parent_KeyDown);
                FindForm().KeyUp   += new System.Windows.Forms.KeyEventHandler(Parent_KeyUp);
            }
        }
Example #9
0
        public LabelButton()
        {
            MouseLeave += new System.EventHandler(label1_MouseLeave);
            MouseDown  += new System.Windows.Forms.MouseEventHandler(this.label1_MouseDown);
            MouseEnter += new System.EventHandler(this.label1_MouseEnter);
            MouseLeave += new System.EventHandler(this.label1_MouseLeave);
            MouseUp    += new System.Windows.Forms.MouseEventHandler(this.label1_MouseUp);


            defalutColor     = Color.Transparent;
            mouseEnterColor1 = Color.White;
            mouseDownColor1  = Color.FromArgb(54, 101, 179);
            borderColor1     = Color.Transparent;
        }
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent() {
			SuspendLayout();
			// 
			// ShapeContainer
			// 
			AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			Name = "ShapeContainer";
			MouseMove += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseMove);
			MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseDoubleClick);
			MouseDown += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseDown);
			MouseUp += new System.Windows.Forms.MouseEventHandler(ShapeContainer_MouseUp);
			ResumeLayout (false);

		}
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     SuspendLayout();
     //
     // AngleSelector
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     Name         = "AngleSelector";
     Size         = new System.Drawing.Size(40, 40);
     Load        += new System.EventHandler(this.AngleSelector_Load);
     MouseMove   += new System.Windows.Forms.MouseEventHandler(this.AngleSelector_MouseMove);
     MouseDown   += new System.Windows.Forms.MouseEventHandler(this.AngleSelector_MouseDown);
     SizeChanged += new System.EventHandler(this.AngleSelector_SizeChanged);
     ResumeLayout(false);
 }
Example #12
0
        protected void PostConstruct()
        {
            _timer              = new CoolTimer();
            _timer.RenderFrame += _timer_RenderFrame;

            if (KeyframePanel != null)
            {
                KeyframePanel.visEditor.EntryChanged += new EventHandler(VISEntryChanged);
                KeyframePanel.visEditor.IndexChanged += new EventHandler(VISIndexChanged);
            }

            ModelPanel.PreRender  += (EventPreRender = new GLRenderEventHandler(this.modelPanel1_PreRender));
            ModelPanel.PostRender += (EventPostRender = new GLRenderEventHandler(this.modelPanel1_PostRender));
            ModelPanel.MouseDown  += (EventMouseDown = new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseDown));
            ModelPanel.MouseMove  += (EventMouseMove = new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseMove));
            ModelPanel.MouseUp    += (EventMouseUp = new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseUp));

            if (PlaybackPanel != null)
            {
                if (PlaybackPanel.Width <= PlaybackPanel.MinimumSize.Width)
                {
                    PlaybackPanel.Dock  = DockStyle.Left;
                    PlaybackPanel.Width = PlaybackPanel.MinimumSize.Width;
                }
                else
                {
                    PlaybackPanel.Dock = DockStyle.Fill;
                }
            }

            InitHotkeyList();

            _hotKeysDown = new Dictionary <Keys, Func <bool> >();
            _hotKeysUp   = new Dictionary <Keys, Func <bool> >();
            foreach (HotKeyInfo key in _hotkeyList)
            {
                if (key._keyDown)
                {
                    _hotKeysDown.Add(key.KeyCode, key._function);
                }
                if (key._keyUp)
                {
                    _hotKeysUp.Add(key.KeyCode, key._function);
                }
            }
        }
Example #13
0
        public static void NotifyAlert(Index win)
        {
            System.Windows.Forms.MouseEventHandler oHandler = delegate(object sender, System.Windows.Forms.MouseEventArgs e)
            {
                win.Activate();
                win.WindowState = System.Windows.Forms.FormWindowState.Normal;
            };
            win.oNotify.MouseDoubleClick  += oHandler;
            win.oNotify.BalloonTipClicked += delegate(object sender, System.EventArgs e)
            {
                win.Activate();
                win.WindowState = System.Windows.Forms.FormWindowState.Normal;
            };

            System.Threading.Thread oThread = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(CheckInOrOut));
            oThread.IsBackground = true;
            oThread.Start(win);
        }
Example #14
0
        // Initialize
        protected override void Initialize()
        {
            if (!DesignMode)
            {
                _view = Parent as EditBlueprintSocketsView;

                // Resources
                _spriteBatch = new SpriteBatch(GraphicsDevice);
                _pixel       = new Texture2D(GraphicsDevice, 1, 1);
                _pixel.SetData <Color>(new[] { Color.White });

                // Input
                System.Windows.Forms.Application.Idle += delegate { Invalidate(); };
                MouseMove            += new System.Windows.Forms.MouseEventHandler(EditBlueprintSocketsGraphics_MouseMove);
                MouseDown            += new System.Windows.Forms.MouseEventHandler(EditBlueprintSocketsGraphics_MouseDown);
                FindForm().KeyPreview = true;
                FindForm().KeyDown   += new System.Windows.Forms.KeyEventHandler(Parent_KeyDown);
                FindForm().KeyUp     += new System.Windows.Forms.KeyEventHandler(EditBlueprintSocketsGraphics_KeyUp);
            }
        }
        public ModelEditControl()
        {
            InitializeComponent();
            leftPanel._mainWindow = this;
            rightPanel.pnlKeyframes._mainWindow =
            rightPanel.pnlBones._mainWindow =
            srt0Editor._mainWindow =
            shp0Editor._mainWindow =
            pat0Editor._mainWindow =
            vis0Editor._mainWindow =
            scn0Editor._mainWindow =
            clr0Editor._mainWindow =
            weightEditor._mainWindow =
            vertexEditor._mainWindow =
            pnlPlayback._mainWindow =
            chr0Editor._mainWindow =
            this;

            animEditors.HorizontalScroll.Enabled = addedHeight = (!(animEditors.Width - animCtrlPnl.Width >= pnlPlayback.MinimumSize.Width));
            if (pnlPlayback.Width <= pnlPlayback.MinimumSize.Width)
            {
                pnlPlayback.Dock = DockStyle.Left;
                pnlPlayback.Width = pnlPlayback.MinimumSize.Width;
            }
            else
                pnlPlayback.Dock = DockStyle.Fill;

            _interpolationEditor = new Forms.InterpolationEditor(this);

            leftPanel.fileType.DataSource = _editableAnimTypes;

            TargetAnimType = AnimType.CHR;
            m_DelegateOpenFile = new DelegateOpenFile(OpenFile);
            ScreenCapBgLocText.Text = Application.StartupPath + "\\ScreenCaptures";

            _timer = new CoolTimer();
            _timer.RenderFrame += _timer_RenderFrame;

            modelPanel.PreRender += (EventPreRender = new System.Windows.Forms.GLRenderEventHandler(this.modelPanel1_PreRender));
            modelPanel.PostRender += (EventPostRender = new System.Windows.Forms.GLRenderEventHandler(this.modelPanel1_PostRender));
            modelPanel.MouseDown += (EventMouseDown = new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseDown));
            modelPanel.MouseMove += (EventMouseMove = new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseMove));
            modelPanel.MouseUp += (EventMouseUp = new System.Windows.Forms.MouseEventHandler(this.modelPanel1_MouseUp));

            KeyframePanel.visEditor.EntryChanged += new EventHandler(this.VISEntryChanged);
            KeyframePanel.visEditor.IndexChanged += new EventHandler(this.VISIndexChanged);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
   System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(IntelliTrack.Client.Application.MapForm));
   toolStrip1 = new System.Windows.Forms.ToolStrip();
   ZoomWindow = new System.Windows.Forms.ToolStripButton();
   ZoomIn = new System.Windows.Forms.ToolStripButton();
   ZoomOut = new System.Windows.Forms.ToolStripButton();
   toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
   Pan = new System.Windows.Forms.ToolStripButton();
   toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
   btnLaunchInBrowser = new System.Windows.Forms.ToolStripButton();
   Info = new System.Windows.Forms.ToolStripButton();
   toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
   RedrawProgressBar = new System.Windows.Forms.ToolStripProgressBar();
   toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
   btnInicio = new System.Windows.Forms.ToolStripButton();
   btnEjecutar = new System.Windows.Forms.ToolStripButton();
   btnPausa = new System.Windows.Forms.ToolStripButton();
   btnDetener = new System.Windows.Forms.ToolStripButton();
   btnConfiguracionConsultaHistorica = new System.Windows.Forms.ToolStripButton();
   lblInformation = new System.Windows.Forms.Label();
   panel1 = new System.Windows.Forms.Panel();
   udRegistrosPorSegundo = new System.Windows.Forms.NumericUpDown();
   lblPosicion = new System.Windows.Forms.Label();
   trackPosicion = new System.Windows.Forms.TrackBar();
   lblEstado = new System.Windows.Forms.Label();
   toolStrip1.SuspendLayout();
   panel1.SuspendLayout();
   udRegistrosPorSegundo.BeginInit();
   trackPosicion.BeginInit();
   SuspendLayout();
   System.Windows.Forms.ToolStripItem[] toolStripItemArr = new System.Windows.Forms.ToolStripItem[] {
                                                                                                            ZoomWindow, 
                                                                                                            ZoomIn, 
                                                                                                            ZoomOut, 
                                                                                                            toolStripSeparator1, 
                                                                                                            Pan, 
                                                                                                            toolStripSeparator3, 
                                                                                                            btnLaunchInBrowser, 
                                                                                                            Info, 
                                                                                                            toolStripSeparator2, 
                                                                                                            RedrawProgressBar, 
                                                                                                            toolStripSeparator4, 
                                                                                                            btnInicio, 
                                                                                                            btnEjecutar, 
                                                                                                            btnPausa, 
                                                                                                            btnDetener, 
                                                                                                            btnConfiguracionConsultaHistorica };
   toolStrip1.Items.AddRange(toolStripItemArr);
   toolStrip1.Location = new System.Drawing.Point(0, 0);
   toolStrip1.Name = "toolStrip1";
   toolStrip1.Size = new System.Drawing.Size(542, 25);
   toolStrip1.TabIndex = 0;
   toolStrip1.Text = "toolStrip1";
   ZoomWindow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   ZoomWindow.Image = (System.Drawing.Image)componentResourceManager.GetObject("ZoomWindow.Image");
   ZoomWindow.ImageTransparentColor = System.Drawing.Color.Magenta;
   ZoomWindow.Name = "ZoomWindow";
   ZoomWindow.Size = new System.Drawing.Size(23, 22);
   ZoomWindow.Text = "toolStripButton1";
   ZoomWindow.ToolTipText = "Zoom Window";
   ZoomWindow.Click += new System.EventHandler(ZoomWindow_Click);
   ZoomIn.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   ZoomIn.Image = (System.Drawing.Image)componentResourceManager.GetObject("ZoomIn.Image");
   ZoomIn.ImageTransparentColor = System.Drawing.Color.Magenta;
   ZoomIn.Name = "ZoomIn";
   ZoomIn.Size = new System.Drawing.Size(23, 22);
   ZoomIn.Text = "toolStripButton2";
   ZoomIn.ToolTipText = "Zoom In";
   ZoomIn.Click += new System.EventHandler(ZoomIn_Click);
   ZoomOut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   ZoomOut.Image = (System.Drawing.Image)componentResourceManager.GetObject("ZoomOut.Image");
   ZoomOut.ImageTransparentColor = System.Drawing.Color.Magenta;
   ZoomOut.Name = "ZoomOut";
   ZoomOut.Size = new System.Drawing.Size(23, 22);
   ZoomOut.Text = "toolStripButton3";
   ZoomOut.ToolTipText = "Zoom out";
   ZoomOut.Click += new System.EventHandler(ZoomOut_Click);
   toolStripSeparator1.Name = "toolStripSeparator1";
   toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
   Pan.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   Pan.Image = (System.Drawing.Image)componentResourceManager.GetObject("Pan.Image");
   Pan.ImageTransparentColor = System.Drawing.Color.Magenta;
   Pan.Name = "Pan";
   Pan.Size = new System.Drawing.Size(23, 22);
   Pan.Text = "toolStripButton1";
   Pan.ToolTipText = "Pan";
   Pan.Click += new System.EventHandler(Pan_Click);
   toolStripSeparator3.Name = "toolStripSeparator3";
   toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
   toolStripSeparator3.Visible = false;
   btnLaunchInBrowser.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   btnLaunchInBrowser.Image = (System.Drawing.Image)componentResourceManager.GetObject("btnLaunchInBrowser.Image");
   btnLaunchInBrowser.ImageTransparentColor = System.Drawing.Color.Magenta;
   btnLaunchInBrowser.Name = "btnLaunchInBrowser";
   btnLaunchInBrowser.Size = new System.Drawing.Size(23, 22);
   btnLaunchInBrowser.Text = "btnLaunchInBrowser";
   btnLaunchInBrowser.Click += new System.EventHandler(toolStripButton1_Click);
   Info.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   Info.Image = (System.Drawing.Image)componentResourceManager.GetObject("Info.Image");
   Info.ImageTransparentColor = System.Drawing.Color.Magenta;
   Info.Name = "Info";
   Info.Size = new System.Drawing.Size(23, 22);
   Info.Text = "toolStripButton1";
   Info.Click += new System.EventHandler(Info_Click);
   toolStripSeparator2.Name = "toolStripSeparator2";
   toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
   RedrawProgressBar.Name = "RedrawProgressBar";
   RedrawProgressBar.Size = new System.Drawing.Size(100, 22);
   RedrawProgressBar.Visible = false;
   toolStripSeparator4.Name = "toolStripSeparator4";
   toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
   btnInicio.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   btnInicio.Image = (System.Drawing.Image)componentResourceManager.GetObject("btnInicio.Image");
   btnInicio.ImageTransparentColor = System.Drawing.Color.Magenta;
   btnInicio.Name = "btnInicio";
   btnInicio.Size = new System.Drawing.Size(23, 22);
   btnInicio.Text = "Inicio";
   btnInicio.Click += new System.EventHandler(btnInicio_Click);
   btnEjecutar.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   btnEjecutar.Image = (System.Drawing.Image)componentResourceManager.GetObject("btnEjecutar.Image");
   btnEjecutar.ImageTransparentColor = System.Drawing.Color.Magenta;
   btnEjecutar.Name = "btnEjecutar";
   btnEjecutar.Size = new System.Drawing.Size(23, 22);
   btnEjecutar.Text = "Ejecutar";
   btnEjecutar.Click += new System.EventHandler(btnEjecutar_Click);
   btnPausa.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   btnPausa.Image = (System.Drawing.Image)componentResourceManager.GetObject("btnPausa.Image");
   btnPausa.ImageTransparentColor = System.Drawing.Color.Magenta;
   btnPausa.Name = "btnPausa";
   btnPausa.Size = new System.Drawing.Size(23, 22);
   btnPausa.Text = "Pausa";
   btnPausa.Click += new System.EventHandler(btnPausa_Click);
   btnDetener.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   btnDetener.Image = (System.Drawing.Image)componentResourceManager.GetObject("btnDetener.Image");
   btnDetener.ImageTransparentColor = System.Drawing.Color.Magenta;
   btnDetener.Name = "btnDetener";
   btnDetener.Size = new System.Drawing.Size(23, 22);
   btnDetener.Text = "Detener";
   btnDetener.Click += new System.EventHandler(btnDetener_Click);
   btnConfiguracionConsultaHistorica.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
   btnConfiguracionConsultaHistorica.Image = (System.Drawing.Image)componentResourceManager.GetObject("btnConfiguracionConsultaHistorica.Image");
   btnConfiguracionConsultaHistorica.ImageTransparentColor = System.Drawing.Color.Magenta;
   btnConfiguracionConsultaHistorica.Name = "btnConfiguracionConsultaHistorica";
   btnConfiguracionConsultaHistorica.Size = new System.Drawing.Size(23, 22);
   btnConfiguracionConsultaHistorica.Text = "Configuraci\u00F3n";
   btnConfiguracionConsultaHistorica.Click += new System.EventHandler(btnConfiguracionConsultaHistorica_Click);
   lblInformation.AutoSize = true;
   lblInformation.Location = new System.Drawing.Point(12, 45);
   lblInformation.Name = "lblInformation";
   lblInformation.Size = new System.Drawing.Size(69, 13);
   lblInformation.TabIndex = 1;
   lblInformation.Text = "lblInformation";
   panel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
   panel1.Controls.Add(udRegistrosPorSegundo);
   panel1.Controls.Add(lblPosicion);
   panel1.Controls.Add(trackPosicion);
   panel1.Controls.Add(lblEstado);
   panel1.Location = new System.Drawing.Point(0, 189);
   panel1.Name = "panel1";
   panel1.Size = new System.Drawing.Size(142, 77);
   panel1.TabIndex = 2;
   udRegistrosPorSegundo.Dock = System.Windows.Forms.DockStyle.Top;
   udRegistrosPorSegundo.Location = new System.Drawing.Point(0, 54);
   int[] iArr1 = new int[4];
   iArr1[0] = 50;
   udRegistrosPorSegundo.Maximum = new System.Decimal(iArr1);
   int[] iArr2 = new int[4];
   iArr2[0] = 1;
   udRegistrosPorSegundo.Minimum = new System.Decimal(iArr2);
   udRegistrosPorSegundo.Name = "udRegistrosPorSegundo";
   udRegistrosPorSegundo.Size = new System.Drawing.Size(142, 20);
   udRegistrosPorSegundo.TabIndex = 3;
   int[] iArr3 = new int[4];
   iArr3[0] = 1;
   udRegistrosPorSegundo.Value = new System.Decimal(iArr3);
   udRegistrosPorSegundo.ValueChanged += new System.EventHandler(udRegistrosPorSegundo_ValueChanged);
   lblPosicion.Dock = System.Windows.Forms.DockStyle.Top;
   lblPosicion.Location = new System.Drawing.Point(0, 41);
   lblPosicion.Name = "lblPosicion";
   lblPosicion.Size = new System.Drawing.Size(142, 13);
   lblPosicion.TabIndex = 2;
   trackPosicion.AutoSize = false;
   trackPosicion.Dock = System.Windows.Forms.DockStyle.Top;
   trackPosicion.Location = new System.Drawing.Point(0, 13);
   trackPosicion.Maximum = 1000000;
   trackPosicion.Name = "trackPosicion";
   trackPosicion.Size = new System.Drawing.Size(142, 28);
   trackPosicion.TabIndex = 1;
   trackPosicion.TickFrequency = 0;
   trackPosicion.TickStyle = System.Windows.Forms.TickStyle.None;
   trackPosicion.Scroll += new System.EventHandler(trackPosicion_Scroll);
   lblEstado.Dock = System.Windows.Forms.DockStyle.Top;
   lblEstado.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
   lblEstado.ForeColor = System.Drawing.Color.Green;
   lblEstado.Location = new System.Drawing.Point(0, 0);
   lblEstado.Name = "lblEstado";
   lblEstado.Size = new System.Drawing.Size(142, 13);
   lblEstado.TabIndex = 0;
   lblEstado.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
   AutoScaleDimensions = new System.Drawing.SizeF(6.0F, 13.0F);
   AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
   AutoSize = true;
   BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
   ClientSize = new System.Drawing.Size(542, 266);
   Controls.Add(panel1);
   Controls.Add(lblInformation);
   Controls.Add(toolStrip1);
   DoubleBuffered = true;
   Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
   Name = "MapForm";
   Text = "Mapa";
   MouseUp += new System.Windows.Forms.MouseEventHandler(MapForm_MouseUp);
   Scroll += new System.Windows.Forms.ScrollEventHandler(MapForm_Scroll);
   SizeChanged += new System.EventHandler(MapForm_SizeChanged);
   MouseDown += new System.Windows.Forms.MouseEventHandler(MapForm_MouseDown);
   FormClosing += new System.Windows.Forms.FormClosingEventHandler(MapForm_FormClosing);
   MouseMove += new System.Windows.Forms.MouseEventHandler(MapForm_MouseMove);
   toolStrip1.ResumeLayout(false);
   toolStrip1.PerformLayout();
   panel1.ResumeLayout(false);
   udRegistrosPorSegundo.EndInit();
   trackPosicion.EndInit();
   ResumeLayout(false);
   PerformLayout();
 }
 public CustomTextBox()
 {
     TabStop    = false;
     MouseDown += new System.Windows.Forms.MouseEventHandler(CustomTextBox_MouseDown);
 }
Example #18
0
 public ExtendedCheckedListBox() : base()
 {
     MouseUp += new System.Windows.Forms.MouseEventHandler(ExtendedCheckedListBox_MouseUp);
 }
Example #19
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            L1    = new System.Windows.Forms.Label();
            L2    = new System.Windows.Forms.Label();
            L3    = new System.Windows.Forms.Label();
            L4    = new System.Windows.Forms.Label();
            B1    = new System.Windows.Forms.Button();
            B2    = new System.Windows.Forms.Button();
            Panel = new System.Windows.Forms.Panel();
            //
            // L1
            //
            L1.AutoSize = true;
            L1.Location = new System.Drawing.Point(6, 11);
            L1.Name     = "L1";
            L1.Size     = new System.Drawing.Size(14, 13);
            L1.Text     = "X";
            //
            // L2
            //
            L2.AutoSize = true;
            L2.Location = new System.Drawing.Point(6, 36);
            L2.Name     = "L2";
            L2.Size     = new System.Drawing.Size(14, 13);
            L2.Text     = "Y";
            //
            // L3
            //
            L3.AutoSize = true;
            L3.Location = new System.Drawing.Point(22, 11);
            L3.Name     = "L3";
            L3.Size     = new System.Drawing.Size(25, 13);
            L3.Text     = "000";
            //
            // L4
            //
            L4.AutoSize = true;
            L4.Location = new System.Drawing.Point(22, 36);
            L4.Name     = "L4";
            L4.Size     = new System.Drawing.Size(25, 13);
            L4.Text     = "000";
            //
            // B1
            //
            B1.Location = new System.Drawing.Point(57, 6);
            B1.Name     = "B1";
            B1.Size     = new System.Drawing.Size(75, 23);
            B1.TabIndex = 0;
            B1.Text     = "New";
            B1.Click   += new System.EventHandler(B1_Click);
            //
            // B2
            //
            B2.Location = new System.Drawing.Point(57, 31);
            B2.Name     = "B2";
            B2.Size     = new System.Drawing.Size(75, 23);
            B2.TabIndex = 1;
            B2.Text     = "Exit";
            B2.Click   += new System.EventHandler(B2_Click);

            /////////////////////////////////////////////////
            B2.MouseEnter += new System.EventHandler(B2_M);
            B2.MouseLeave += new System.EventHandler(B2_L);
            B2.BackColor   = System.Drawing.Color.Green;;
            /////////////////////////////////////////////////

            //
            // Panel
            //
            Panel.BackColor = System.Drawing.Color.Black;
            Panel.Location  = new System.Drawing.Point(138, 6);
            Panel.Name      = "Panel";
            Panel.Size      = new System.Drawing.Size(43, 48);

            /////////////////////////////////////////////////
            Panel.Cursor = System.Windows.Forms.Cursors.No;
            /////////////////////////////////////////////////

            //
            // MainForm
            //
            ClientSize      = new System.Drawing.Size(184, 61);
            FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            Name            = "MainForm";
            Text            = "Main Form";
            StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            Controls.Add(L1);
            Controls.Add(L2);
            Controls.Add(L3);
            Controls.Add(L4);
            Controls.Add(B1);
            Controls.Add(B2);
            Controls.Add(Panel);
            MouseMove += new System.Windows.Forms.MouseEventHandler(MainForm_MouseMove);
            Move      += new System.EventHandler(MainForm_Move);
        }
Example #20
0
 private void UpdateOpenToolStripMenuEventHandler(System.Windows.Forms.MouseEventHandler newOpenToolStripMenuItemMouseEventHandler)
 {
     trayNotifyIcon.MouseClick       += OpenToolStripMenuItemMouseEventHandler;
     contextMenuStrip.Items[0].Click += (s, e) =>
                                        newOpenToolStripMenuItemMouseEventHandler(s, new System.Windows.Forms.MouseEventArgs(System.Windows.Forms.MouseButtons.Left, 1, 0, 0, 0));
 }
Example #21
0
 private void UpdateCloseToolStripMenuEventHandler(System.Windows.Forms.MouseEventHandler newCloseToolStripMenuItemMouseEventHandler)
 {
     contextMenuStrip.Items[3].Click += (s, e) =>
                                        newCloseToolStripMenuItemMouseEventHandler(s, new System.Windows.Forms.MouseEventArgs(System.Windows.Forms.MouseButtons.Left, 1, 0, 0, 0));
 }
Example #22
0
 public sListBox() : base()
 {
      MouseDown += new System.Windows.Forms.MouseEventHandler( this.MouseDownFired ); 
 }
Example #23
0
        protected override void Initialize()
        {
            if (!IsDesignerHosted)
            {
                _spriteBatch = new SpriteBatch(GraphicsDevice);
                _backgroundRenderer = new BackgroundRenderer(_spriteBatch);

                System.Windows.Forms.Application.Idle += delegate { Invalidate(); };
                MouseMove += new System.Windows.Forms.MouseEventHandler(BackgroundDisplay_MouseMove);
                FindForm().KeyDown += new System.Windows.Forms.KeyEventHandler(Parent_KeyDown);
                FindForm().KeyUp += new System.Windows.Forms.KeyEventHandler(Parent_KeyUp);
            }
        }
 public override void InitEventListener()
 {
     Logger.logBegin("InitEventListener");
     Delegate objDlgt = new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
     base.AddHandler(MarsTigerServerConst.CNST_EVNT_MOUSEDOWN, objDlgt);
 }