Exemple #1
0
        private void _InitNotifyBox()
        {
            Program.SettingForm.InvokeIfRequired(() =>
            {
                m_Notify = new NotifyBox(Program.SettingForm);

                m_Notify.SetBackgroundBitmap(new Bitmap(GetType(), $"{Style}.png"), Color.FromArgb(255, 0, 255));
                //m_Notify.SetCloseBitmap(new Bitmap(GetType(), $"{Style}Close.png"), Color.FromArgb(255, 0, 255), new Point(450, 5));
                m_Notify.SetCloseBitmap(new Bitmap(GetType(), $"{Style}Close2.png"), Color.FromArgb(255, 0, 255), new Point(25, 35));
                m_Notify.TitleRectangle   = new Rectangle(5, 8, 76, 89);
                m_Notify.ContentRectangle = new Rectangle(90, 5, 390, 89);
                m_Notify.ContentClick    += new EventHandler(ContentClick);
                m_Notify.CloseClick      += new EventHandler(CloseClick);

                m_Notify.NormalContentColor = m_Notify.HoverContentColor = m_Notify.NormalTitleColor = m_Notify.HoverTitleColor = Color.FromName($"{Style}");
                //m_Notify.CloseClickable = m_Notify.ContentClickable =
                //m_Notify.EnableSelectionRectangle = m_Notify.KeepVisibleOnMousOver =
                //m_Notify.ReShowOnMouseOver = true;
            });
        }