コード例 #1
0
        private void DrawLNA(Graphics g, VDrawInfo v, Painter p)
        {
            // 背面消去
            Rectangle rc = new Rectangle(v.rc.Left, v.rc.Top, lna(), v.rc.Bottom);

            p.DrawLineNumBack(g, rc);

            if (v.rc.Top < v.YMAX)
            {
                // 境界線表示
                int line = lna() - p.F() / 2;
                p.DrawLine(g, line, v.rc.Top, line, v.YMAX);

                // 行番号表示
                //int n = v.TLMIN + 1;
                strint n    = new strint(v.TLMIN + 1);
                int    y    = v.YMIN;
                int    edge = lna() - p.F() * 2;

                for (int i = v.TLMIN; y < v.YMAX; ++i, ++n)
                {
                    n.Output(g, p, edge, y);
                    y += p.H() * rln(i);
                }
            }
        }
コード例 #2
0
        //void operator++() {
        public static strint operator ++(strint s)
        {
            int i = 10;

            do
            {
                if (s.digit[i] == '9')
                {
                    s.digit[i] = '0';
                }
                else
                {
                    ++s.digit[i]; return(new strint(s.digit));
                }
            }while (s.digit[--i] != ' ');
            s.digit[i] = '1';

            strint tmp = new strint(s.digit);

            return(tmp);
        }
コード例 #3
0
        //void operator++() {
        public static strint operator ++(strint s)
        {
            int i = 10;
            do
                if (s.digit[i] == '9')
                    s.digit[i] = '0';
                else { ++s.digit[i]; return new strint(s.digit); }
            while (s.digit[--i] != ' ');
            s.digit[i] = '1';

            strint tmp = new strint(s.digit);
            return tmp;
        }
コード例 #4
0
        private void DrawLNA(Graphics g, VDrawInfo v, Painter p )
        {
            // 背面消去
            Rectangle rc = new Rectangle(v.rc.Left, v.rc.Top, lna(), v.rc.Bottom);
            p.DrawLineNumBack(g, rc);

            if (v.rc.Top < v.YMAX) {
                // 境界線表示
                int line = lna() - p.F() / 2;
                p.DrawLine(g, line, v.rc.Top, line, v.YMAX);

                // 行番号表示
                //int n = v.TLMIN + 1;
                strint n = new strint(v.TLMIN + 1);
                int y = v.YMIN;
                int edge = lna() - p.F() * 2;

                for (int i = v.TLMIN; y < v.YMAX; ++i, ++n) {
                    n.Output(g, p, edge, y);
                    y += p.H() * rln(i);
                }
            }
        }