예제 #1
0
 //用于检测是否发送表情
 private void Sticker_timer_Tick(object sender, EventArgs e)
 {
     if (sticker_tag != 0)
     {
         Sticker_timer.Stop();
         afterTagChanged();
         sticker_tag = 0;
     }
 }
예제 #2
0
        //发表情窗体
        private void Btn_emoji_Click(object sender, EventArgs e)
        {
            Form  Sticker_Form = new sticker(m);
            Point mouse_p      = MousePosition;

            if (flag_OC)
            {
                flag_OC = false;

                Sticker_Form.Show();
                Sticker_Form.Location = new Point(mouse_p.X - Sticker_Form.Width + 10, mouse_p.Y - Sticker_Form.Height + 10);
                Sticker_timer.Start();
            }
            else
            {
                Sticker_Form.Close();
                flag_OC = true;
                Sticker_timer.Stop();
            }
        }