Esempio n. 1
0
    public void Add(string Message, BubblePositionEnum Position)
    {
        Message b = new Message(this, Message, Position);

        b.DrawBubbleArrow = _DrawArrow;
        b.Width           = this.ClientSize.Width;
        Messages.Add(b);
        this.Controls.Add(b);
    }
Esempio n. 2
0
 public Message(MessageControl mc, string Message, BubblePositionEnum Position)
 {
     this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint, true);
     this.UpdateStyles();
     this._mc             = mc;
     this._BubblePosition = Position;
     this.Text            = Message;
     this.BubbleColor     = (Position == BubblePositionEnum.Right ? mc.RightBubbleColor : mc.LeftBubbleColor);
     this.BackColor       = this.BubbleColor;
     this.ForeColor       = (Position == BubblePositionEnum.Right ? mc.RightBubbleTextColor : mc.LeftBubbleTextColor);
     this.Font            = new Font("Segoe UI", 10);
     this.Size            = new Size(152, 38);
     this.Anchor          = AnchorStyles.Left | AnchorStyles.Right;
 }
Esempio n. 3
0
 public Message(BubblePositionEnum Position)
 {
     _BubblePosition = Position;
     SetStyle(ControlStyles.AllPaintingInWmPaint |
              ControlStyles.OptimizedDoubleBuffer |
              ControlStyles.ResizeRedraw |
              ControlStyles.SupportsTransparentBackColor |
              ControlStyles.UserPaint, true);
     DoubleBuffered = true;
     BackColor      = Color.Transparent;
     ForeColor      = Color.FromArgb(52, 52, 52);
     Font           = new Font("Segoe UI", 10);
     Anchor         = AnchorStyles.Top;
 }