Exemple #1
0
        /// <summary>
        /// Creates an icon to be displayed in the bar.
        /// </summary>
        private Control OnCreateIcon()
        {
            ImageListPictureBox pbox = new ImageListPictureBox();

            pbox.ImageList = Core.ResourceIconManager.ImageList;
            return(pbox);
        }
Exemple #2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components         = new System.ComponentModel.Container();
            this._contentPane       = new System.Windows.Forms.Panel();
            this._lblBody           = new JetBrains.Omea.GUIControls.JetLinkLabel();
            this._resourceIconBox   = new JetBrains.Omea.GUIControls.ImageListPictureBox();
            this._lblSubject        = new System.Windows.Forms.Label();
            this._lblFrom           = new System.Windows.Forms.Label();
            _btnDelete              = new ImageListButton();
            _btnClose               = new ImageListButton();
            this._fadeInTimer       = new System.Windows.Forms.Timer(this.components);
            this._visibleTimer      = new System.Windows.Forms.Timer(this.components);
            this._fadeOutTimer      = new System.Windows.Forms.Timer(this.components);
            this._balloonLeaveTimer = new System.Windows.Forms.Timer(this.components);

            _toolTipReason            = new ToolTip(components);
            _toolTipReason.ShowAlways = true;

            this._contentPane.SuspendLayout();
            this.SuspendLayout();
            //
            // _contentPane
            //
            this._contentPane.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                              | System.Windows.Forms.AnchorStyles.Left)
                                                                             | System.Windows.Forms.AnchorStyles.Right)));
            this._contentPane.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
            this._contentPane.Controls.Add(_btnClose);
            this._contentPane.Controls.Add(this._lblBody);
            this._contentPane.Controls.Add(this._resourceIconBox);
            this._contentPane.Controls.Add(this._btnDelete);
            this._contentPane.Controls.Add(this._lblSubject);
            this._contentPane.Controls.Add(this._lblFrom);
            this._contentPane.Location = new System.Drawing.Point(2, 2);
            this._contentPane.Name     = "_contentPane";
            this._contentPane.Size     = new System.Drawing.Size(296, 68);
            this._contentPane.TabIndex = 0;
            //
            // _lblBody
            //
            this._lblBody.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
            this._lblBody.AutoSize    = false;
            this._lblBody.Cursor      = System.Windows.Forms.Cursors.Hand;
            this._lblBody.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
            this._lblBody.ForeColor   = System.Drawing.Color.Blue;
            this._lblBody.Location    = new System.Drawing.Point(28, 36);
            this._lblBody.Name        = "_lblBody";
            this._lblBody.Size        = new System.Drawing.Size(264, 28);
            this._lblBody.TabIndex    = 3;
            this._lblBody.WordWrap    = true;
            this._lblBody.Click      += new System.EventHandler(this._lblBody_Click);
            this._lblBody.MouseEnter += new System.EventHandler(this.OnBalloonMouseEnter);
            this._lblBody.MouseLeave += new System.EventHandler(this.OnBalloonMouseLeave);
            //
            // _resourceIconBox
            //
            this._resourceIconBox.ImageIndex        = 0;
            this._resourceIconBox.ImageLeftTopPoint = new System.Drawing.Point(0, 0);
            this._resourceIconBox.Location          = new System.Drawing.Point(8, 2);
            this._resourceIconBox.Name        = "_resourceIconBox";
            this._resourceIconBox.Size        = new System.Drawing.Size(16, 16);
            this._resourceIconBox.TabIndex    = 2;
            this._resourceIconBox.TabStop     = false;
            this._resourceIconBox.MouseEnter += new System.EventHandler(this.OnBalloonMouseEnter);
            this._resourceIconBox.MouseLeave += new System.EventHandler(this.OnBalloonMouseLeave);
            //
            // _btnDelete
            //
            this._btnDelete.Anchor            = (AnchorStyles.Top | AnchorStyles.Right);
            this._btnDelete.Name              = "_btnDelete";
            this._btnDelete.Size              = new System.Drawing.Size(16, 16);
            this._btnDelete.Location          = new System.Drawing.Point(8, 20);
            this._btnDelete.TabIndex          = 3;
            this._btnDelete.Click            += new EventHandler(_btnDelete_Click);
            this._btnDelete.NormalImageIndex  = 0;
            this._btnDelete.HotImageIndex     = 1;
            this._btnDelete.PressedImageIndex = 2;
            this._btnDelete.ImageList         = _delImageList;
            this._btnDelete.MouseEnter       += new System.EventHandler(this.OnBalloonMouseEnter);
            this._btnDelete.MouseLeave       += new System.EventHandler(this.OnBalloonMouseLeave);
            //
            // _btnClose
            //
            this._btnClose.Name              = "_btnClose";
            this._btnClose.Size              = new System.Drawing.Size(16, 16);
            this._btnClose.Location          = new System.Drawing.Point(280, 2);
            this._btnClose.TabIndex          = 3;
            this._btnClose.NormalImageIndex  = 0;
            this._btnClose.HotImageIndex     = 1;
            this._btnClose.PressedImageIndex = 2;
            this._btnClose.ImageList         = _closeImageList;
            this._btnClose.MouseEnter       += new System.EventHandler(this.OnBalloonMouseEnter);
            this._btnClose.MouseLeave       += new System.EventHandler(this.OnBalloonMouseLeave);
            this._btnClose.Click            += new EventHandler(_btnClose_Click);
            //
            // _lblSubject
            //
            this._lblSubject.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                            | System.Windows.Forms.AnchorStyles.Right)));
            this._lblSubject.FlatStyle   = System.Windows.Forms.FlatStyle.System;
            this._lblSubject.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
            this._lblSubject.Location    = new System.Drawing.Point(28, 20);
            this._lblSubject.Name        = "_lblSubject";
            this._lblSubject.Size        = new System.Drawing.Size(264, 14);
            this._lblSubject.TabIndex    = 1;
            this._lblSubject.Text        = "<no subject>";
            this._lblSubject.UseMnemonic = false;
            this._lblSubject.MouseEnter += new System.EventHandler(this.OnBalloonMouseEnter);
            this._lblSubject.MouseLeave += new System.EventHandler(this.OnBalloonMouseLeave);
            //
            // _lblFrom
            //
            this._lblFrom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
            this._lblFrom.FlatStyle   = System.Windows.Forms.FlatStyle.System;
            this._lblFrom.Font        = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
            this._lblFrom.Location    = new System.Drawing.Point(28, 4);
            this._lblFrom.Name        = "_lblFrom";
            this._lblFrom.Size        = new System.Drawing.Size(264, 16);
            this._lblFrom.TabIndex    = 0;
            this._lblFrom.Text        = "From:";
            this._lblFrom.UseMnemonic = false;
            this._lblFrom.MouseEnter += new System.EventHandler(this.OnBalloonMouseEnter);
            this._lblFrom.MouseLeave += new System.EventHandler(this.OnBalloonMouseLeave);
            //
            // _fadeInTimer
            //
            this._fadeInTimer.Interval = 100;
            this._fadeInTimer.Tick    += new System.EventHandler(this._fadeInTimer_Tick);
            //
            // _visibleTimer
            //
            this._visibleTimer.Interval = _visibilityInterval;
            this._visibleTimer.Tick    += new System.EventHandler(this._visibleTimer_Tick);
            //
            // _fadeOutTimer
            //
            this._fadeOutTimer.Interval = 100;
            this._fadeOutTimer.Tick    += new System.EventHandler(this._fadeOutTimer_Tick);
            //
            // _balloonLeaveTimer
            //
            this._balloonLeaveTimer.Interval = 150;
            this._balloonLeaveTimer.Tick    += new System.EventHandler(this._balloonLeaveTimer_Tick);
            //
            // BalloonForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.BackColor         = System.Drawing.SystemColors.ControlDarkDark;
            this.ClientSize        = new System.Drawing.Size(300, 72);
            this.Controls.Add(this._contentPane);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Name            = "BalloonForm";
            this.Opacity         = 0;
            this.ShowInTaskbar   = false;
            this.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
            this.Text            = "BalloonForm";
            this.TopMost         = true;
            this._contentPane.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Exemple #3
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PaneCaption));
            this._captionLabel  = new System.Windows.Forms.Label();
            this._iconList      = new System.Windows.Forms.ImageList(this.components);
            this._minimizeBtn   = new GUIControls.ImageListPictureBox();
            this._restoreBtn    = new GUIControls.ImageListPictureBox();
            this._restoreTimer  = new System.Windows.Forms.Timer(this.components);
            this._dragOverTimer = new System.Windows.Forms.Timer(this.components);
            this._toolTip       = new System.Windows.Forms.ToolTip(this.components);
            this.SuspendLayout();
            //
            // _captionLabel
            //
            this._captionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
            this._captionLabel.BackColor    = System.Drawing.SystemColors.ActiveCaption;
            this._captionLabel.FlatStyle    = System.Windows.Forms.FlatStyle.System;
            this._captionLabel.Font         = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
            this._captionLabel.ForeColor    = System.Drawing.SystemColors.ActiveCaptionText;
            this._captionLabel.Location     = new System.Drawing.Point(5, 1);
            this._captionLabel.Name         = "_captionLabel";
            this._captionLabel.Size         = new System.Drawing.Size(140, 23);
            this._captionLabel.TabIndex     = 1;
            this._captionLabel.Text         = "label1";
            this._captionLabel.TextAlign    = System.Drawing.ContentAlignment.MiddleLeft;
            this._captionLabel.DoubleClick += new System.EventHandler(this._captionLabel_DoubleClick);
            //
            // _iconList
            //
            this._iconList.ImageSize        = new System.Drawing.Size(16, 16);
            this._iconList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_iconList.ImageStream")));
            this._iconList.TransparentColor = System.Drawing.Color.Transparent;
            //
            // _minimizeBtn
            //
            this._minimizeBtn.Dock       = System.Windows.Forms.DockStyle.Right;
            this._minimizeBtn.ImageIndex = 1;
            this._minimizeBtn.ImageList  = this._iconList;
            this._minimizeBtn.Location   = new System.Drawing.Point(101, 1);
            this._minimizeBtn.Name       = "_minimizeBtn";
            this._minimizeBtn.Size       = new System.Drawing.Size(16, 16);
            this._minimizeBtn.TabIndex   = 3;
            this._minimizeBtn.Text       = "imageListPictureBox1";
            this._toolTip.SetToolTip(this._minimizeBtn, "Minimize Pane");
            this._minimizeBtn.Click += new System.EventHandler(this._minimizeBtn_Click);
            //
            // _restoreBtn
            //
            this._restoreBtn.Dock       = System.Windows.Forms.DockStyle.Right;
            this._restoreBtn.ImageIndex = 2;
            this._restoreBtn.ImageList  = this._iconList;
            this._restoreBtn.Location   = new System.Drawing.Point(117, 1);
            this._restoreBtn.Name       = "_restoreBtn";
            this._restoreBtn.Size       = new System.Drawing.Size(16, 16);
            this._restoreBtn.TabIndex   = 4;
            this._restoreBtn.Text       = "imageListPictureBox1";
            this._toolTip.SetToolTip(this._restoreBtn, "Restore Pane");
            this._restoreBtn.Click += new System.EventHandler(this._restoreBtn_Click);
            //
            // _restoreTimer
            //
            this._restoreTimer.Interval = 200;
            this._restoreTimer.Tick    += new System.EventHandler(this._restoreTimer_Tick);
            //
            // _dragOverTimer
            //
            this._dragOverTimer.Interval = 500;
            this._dragOverTimer.Tick    += new System.EventHandler(this._dragOverTimer_Tick);
            //
            // PaneCaption
            //
            Height  = 18;
            Visible = false;
            Active  = false;

            this.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.Controls.Add(this._minimizeBtn);
            this.Controls.Add(this._restoreBtn);
            this.Controls.Add(this._captionLabel);
            this.DockPadding.All = 1;
            this.Name            = "PaneCaption";
            this.Size            = new System.Drawing.Size(150, 18);
            this.ResumeLayout(false);
        }