Example #1
0
        public Form1()
        {
            string [] s1 = new string[] { "<", ">" };
            int       i  = 0;

            this.Width  = 640;
            this.Height = 350;
            this.Top    = 0;
            this.Left   = 0;
            x           = 0;
            y           = 0;
            w           = (int)this.Width;
            h           = (int)this.Height - 20;
            this.Paint += new PaintEventHandler(OnPaints);
            list1.x     = 0;
            list1.y     = 0;
            list1.w     = 180;
            list1.h     = 30;
            list1.size  = 12;
            //for(i=0;i<64;i++)list1.listss.add (" item " + Convert.ToString(i));
            for (i = 0; i < button1.Length; i++)
            {
                button1[i] = new gbutton(250, 10 + (i * 53), s1[i]);
            }

            this.MouseDown += new MouseEventHandler(OnMouseDowns);
            this.CenterToScreen();
        }
Example #2
0
        public Form1()
        {
            string [] s1  = new string[] { "<", ">" };
            int       i   = 0;
            int       i1  = 0;
            char      cc  = ' ';
            string    ss1 = "";
            int       c1  = 0;

            this.Width  = 640;
            this.Height = 350;
            this.Top    = 0;
            this.Left   = 0;

            x            = 0;
            y            = 0;
            w            = (int)this.Width;
            h            = (int)this.Height - 20;
            this.Paint  += new PaintEventHandler(OnPaints);
            gtable1.x    = 0;
            gtable1.y    = 0;
            gtable1.w    = 180;
            gtable1.h    = 30;
            gtable1.size = 12;
            for (i = 0; i < 64; i++)
            {
                ss1 = "";
                for (i1 = 0; i1 < gtable1.tabless.tabless[i].colsn.Length; i1++)
                {
                    c1  = 65 + i1;
                    cc  = Convert.ToChar(c1);
                    ss1 = ss1 + cc + "," + Convert.ToString(i);
                    if (i1 != gtable1.tabless.tabless[i].colsn.Length - 1)
                    {
                        ss1 = ss1 + ";";
                    }
                }
                gtable1.tabless.add(ss1);
            }
            gtable1.w = 60;
            for (i = 0; i < button1.Length; i++)
            {
                button1[i]   = new gbutton(590, 10 + (i * 53), s1[i]);
                button1[i].w = 40;
            }


            this.MouseDown += new MouseEventHandler(OnMouseDowns);
            this.CenterToScreen();
        }
Example #3
0
            public Form1()
            {
                int i = 0;

                this.Width  = 640;
                this.Height = 350;
                this.Top    = 0;
                this.Left   = 0;
                x           = 0;
                y           = 0;
                w           = (int)this.Width;
                h           = (int)this.Height - 20;
                for (i = 0; i < button1.Length; i++)
                {
                    button1[i] = new gbutton(10, 10 + (i * 53), "Buttons" + Convert.ToString(i));
                }
                button1[5].w       = 610;
                button1[5].caption = "";
                this.Paint        += new PaintEventHandler(OnPaints);

                this.MouseUp   += new MouseEventHandler(OnMouseUps);
                this.MouseDown += new MouseEventHandler(OnMouseDowns);
                this.CenterToScreen();
            }