/// <summary>
        /// Create a new instance of the popup component.
        /// </summary>
        public PopupNotifier()
        {
            // set default values
            HeaderColor       = SystemColors.ControlDark;
            BodyColor         = SystemColors.Control;
            TitleColor        = System.Drawing.Color.Gray;
            ContentColor      = SystemColors.ControlText;
            BorderColor       = SystemColors.WindowFrame;
            ButtonBorderColor = SystemColors.WindowFrame;
            ButtonHoverColor  = SystemColors.Highlight;
            ContentHoverColor = SystemColors.HotTrack;
            GradientPower     = 50;
            ContentFont       = SystemFonts.DialogFont;
            TitleFont         = SystemFonts.CaptionFont;
            ShowGrip          = true;
            Scroll            = true;
            TitlePadding      = new Padding(0);
            ContentPadding    = new Padding(0);
            ImagePadding      = new Padding(0);
            HeaderHeight      = 9;
            ShowCloseButton   = true;
            ShowOptionsButton = false;
            Delay             = 3000;
            AnimationInterval = 10;
            AnimationDuration = 1000;
            Size = new Size(400, 100);

            BodyColor        = System.Drawing.Color.SteelBlue;
            BorderColor      = System.Drawing.Color.Navy;
            ButtonHoverColor = System.Drawing.Color.Orange;
            ContentColor     = System.Drawing.Color.White;
            HeaderColor      = System.Drawing.Color.Navy;
            TitleColor       = System.Drawing.Color.White;
            ContentFont      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            TitleFont        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));


            frmPopup                    = new PopupNotifierForm(this);
            frmPopup.TopMost            = true;
            frmPopup.FormBorderStyle    = System.Windows.Forms.FormBorderStyle.None;
            frmPopup.StartPosition      = System.Windows.Forms.FormStartPosition.Manual;
            frmPopup.FormBorderStyle    = System.Windows.Forms.FormBorderStyle.None;
            frmPopup.MouseEnter        += new EventHandler(frmPopup_MouseEnter);
            frmPopup.MouseLeave        += new EventHandler(frmPopup_MouseLeave);
            frmPopup.CloseClick        += new EventHandler(frmPopup_CloseClick);
            frmPopup.LinkClick         += new EventHandler(frmPopup_LinkClick);
            frmPopup.ContextMenuOpened += new EventHandler(frmPopup_ContextMenuOpened);
            frmPopup.ContextMenuClosed += new EventHandler(frmPopup_ContextMenuClosed);

            tmrAnimation       = new Timer();
            tmrAnimation.Tick += new EventHandler(tmAnimation_Tick);

            tmrWait       = new Timer();
            tmrWait.Tick += new EventHandler(tmWait_Tick);
        }
Example #2
0
        /// <summary>
        /// Create a new instance of the popup component.
        /// </summary>
        public PopupNotifier()
        {
            // set default values

            HeaderColor       = SystemColors.ControlDark;
            BodyColor         = SystemColors.Control;
            TitleColor        = System.Drawing.Color.Gray;
            ContentColor      = SystemColors.ControlText;
            BorderColor       = SystemColors.WindowFrame;
            ButtonBorderColor = SystemColors.WindowFrame;
            ButtonHoverColor  = SystemColors.Highlight;
            ContentHoverColor = SystemColors.HotTrack;
            GradientPower     = 50;
            ContentFont       = SystemFonts.DialogFont;
            TitleFont         = SystemFonts.CaptionFont;
            ShowGripText      = true;
            Scroll            = true;
            TitlePadding      = new Padding(0);
            ContentPadding    = new Padding(0);
            ImagePadding      = new Padding(0);
            HeaderHeight      = 9;
            ShowCloseButton   = true;
            ShowOptionsButton = false;
            Delay             = 3000;
            AnimationInterval = 20;
            AnimationDuration = 1000;
            Size = new Size(400, 100);

            frmPopup                 = new PopupNotifierForm(this);
            frmPopup.TopMost         = true;
            frmPopup.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frmPopup.StartPosition   = System.Windows.Forms.FormStartPosition.Manual;
            frmPopup.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frmPopup.MouseEnter     += new EventHandler(frmPopup_MouseEnter);
            frmPopup.MouseLeave     += new EventHandler(frmPopup_MouseLeave);
            frmPopup.MouseClick     += new MouseEventHandler(frmPopup_MouseClick);

            //    frmPopup.CloseClick += new EventHandler(frmPopup_CloseClick);
            //    frmPopup.LinkClick += new EventHandler(frmPopup_LinkClick);
            //    frmPopup.ContextMenuOpened += new EventHandler(frmPopup_ContextMenuOpened);
            //   frmPopup.ContextMenuClosed += new EventHandler(frmPopup_ContextMenuClosed);

            tmrAnimation       = new Timer();
            tmrAnimation.Tick += new EventHandler(tmAnimation_Tick);

            tmrWait       = new Timer();
            tmrWait.Tick += new EventHandler(tmWait_Tick);

            timer1         = new Timer();
            timer1.Tick   += new EventHandler(timer1_Tick);
            timer1.Enabled = false;
        }
Example #3
0
        /// <summary>
        /// Create a new instance of the popup component.
        /// </summary>
        public PopupNotifier()
        {
            // set default values
            HeaderColor = SystemColors.ControlDark;
            BodyColor = SystemColors.Control;
            TitleColor = System.Drawing.Color.Gray;
            ContentColor = SystemColors.ControlText;
            BorderColor = SystemColors.WindowFrame;
            ButtonBorderColor = SystemColors.WindowFrame;
            ButtonHoverColor = SystemColors.Highlight;
            ContentHoverColor = SystemColors.HotTrack;
            GradientPower = 50;
            ContentFont = SystemFonts.DialogFont;
            TitleFont = SystemFonts.CaptionFont;
            ShowGrip = true;
            Scroll = true;
            TitlePadding = new Padding(0);
            ContentPadding = new Padding(0);
            ImagePadding = new Padding(0);
            HeaderHeight = 9;
            ShowCloseButton = true;
            ShowOptionsButton = false;
            Delay = 3000;
            AnimationInterval = 10;
            AnimationDuration = 1000;
            Size = new Size(400, 100);

            frmPopup = new PopupNotifierForm(this);
            frmPopup.TopMost = true;
            frmPopup.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frmPopup.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            frmPopup.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frmPopup.MouseEnter += new EventHandler(frmPopup_MouseEnter);
            frmPopup.MouseLeave += new EventHandler(frmPopup_MouseLeave);
            frmPopup.CloseClick += new EventHandler(frmPopup_CloseClick);
            frmPopup.LinkClick += new EventHandler(frmPopup_LinkClick);
            frmPopup.ContextMenuOpened += new EventHandler(frmPopup_ContextMenuOpened);
            frmPopup.ContextMenuClosed += new EventHandler(frmPopup_ContextMenuClosed);

            tmrAnimation = new Timer();
            tmrAnimation.Tick += new EventHandler(tmAnimation_Tick);

            tmrWait = new Timer();
            tmrWait.Tick += new EventHandler(tmWait_Tick);
        }