/// <summary> /// Create a new instance of the popup component. /// </summary> public PopupNotifier() { // set default values HeaderColor = SystemColors.Desktop; BodyColor = SystemColors.Desktop; TitleColor = System.Drawing.Color.Gray; ContentColor = SystemColors.ControlText; BorderColor = SystemColors.WindowFrame; ButtonBorderColor = SystemColors.WindowFrame; ButtonHoverColor = SystemColors.Highlight; ContentHoverColor = SystemColors.GrayText; GradientPower = 10; ContentFont = new Font("Arial", 11, FontStyle.Regular); TitleFont = new Font(SystemFonts.CaptionFont, FontStyle.Bold); TitleFromFont = new Font(SystemFonts.CaptionFont, FontStyle.Bold); ShowGrip = false; Scroll = false; TitlePadding = new Padding(6); ContentPadding = new Padding(0); ImagePadding = new Padding(0); HeaderHeight = 4; ShowCloseButton = true; ShowOptionsButton = false; Delay = 4000; AnimationInterval = 10; AnimationDuration = 300; Size = new Size(450, 120); 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); frmPopup.VisibleChanged += new EventHandler(frmPopup_VisibleChanged); tmrAnimation = new Timer(); tmrAnimation.Tick += new EventHandler(tmAnimation_Tick); tmrWait = new Timer(); tmrWait.Tick += new EventHandler(tmWait_Tick); }
/// <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.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); frmPopup.VisibleChanged += new EventHandler(frmPopup_VisibleChanged); tmrAnimation = new Timer(); tmrAnimation.Tick += new EventHandler(tmAnimation_Tick); tmrWait = new Timer(); tmrWait.Tick += new EventHandler(tmWait_Tick); }