Exemplo n.º 1
0
        }   // end of ScrollDown()

        private void ScrollUp()
        {
            int numLines = blob.NumLines;

            if (numLines - textVisibleLines > topLine)
            {
                ++topLine;
                TwitchTextOffset();

                // This scroll may have moved the cursor off screen, if so
                // move the cursor so that it's back on screen.
                int line   = 0;
                int curPos = 0;
                blob.FindCursorLineAndPosition(out line, out curPos);
                if (line < topLine)
                {
                    blob.CursorDown();
                }
            }
        }   // end of ScrollUp()