示例#1
0
        private void add_pave_key(string name, string text, Bitmap image, int width, int height, Color couleur, int col, int row, int span, bool is_numeric)
        {
            Font   clavier_font = new Font("Arial", 16);
            kb_key touche       = new kb_key(name, text, image, width, height, couleur, clavier_font, is_numeric);

            if (span > 1)
            {
                pavetable.SetColumnSpan(touche, span);
            }

            pavetable.Controls.Add(touche, col, row);
        }
示例#2
0
        private void add_keyboard_key(string name, string text, Bitmap image, int width, int height, Color couleur, int col, int row, int span)
        {
            Font   clavier_font = new Font("Arial", 16);
            kb_key touche       = new kb_key(name, text, image, width, height, couleur, clavier_font, false);

            if (span > 1)
            {
                kbtable.SetColumnSpan(touche, span);
            }

            kbtable.Controls.Add(touche, col, row);
        }