Exemplo n.º 1
0
        public MFTestResults TextFlow_ScrollingStyleTest3()
        {
            if (CleaningWindow() != MFTestResults.Pass)
            {
                return(MFTestResults.Fail);
            }
            MFTestResults testResult = MFTestResults.Pass;

            _lineCount = true;
            ScrollingStyle[] _sStyles = new ScrollingStyle[] { ScrollingStyle.First,
                                                               ScrollingStyle.Last, ScrollingStyle.LineByLine, ScrollingStyle.PageByPage };
            for (int i = 0; i < _sStyles.Length; i++)
            {
                _style = _sStyles[i];
                UpdateWindow();
                if (_getStyle != _sStyles[i])
                {
                    Log.Comment("Expected ScrollingStyle '" + _sStyles[i] +
                                "' but got '" + _getStyle + "'");
                    testResult = MFTestResults.Fail;
                }
            }

            return(testResult);
        }
Exemplo n.º 2
0
        protected override void PaintCell(DevAge.Drawing.GraphicsCache graphics, CellContext cellContext, RectangleF drawRectangle)
        {
            Range cellRange = PositionToCellRange(cellContext.Position);

            if (cellRange.ColumnsCount == 1 && cellRange.RowsCount == 1)
            {
                base.PaintCell(graphics, cellContext, drawRectangle);
            }
            else //Row/Col Span > 1
            {
                // I draw the merged cell only if not already drawn otherwise
                // drawing the same cell can cause some problem when using
                // special drawing code (for example semi transparent background)
                if (mDrawnRange.Contains(cellRange) == false)
                {
                    //[email protected]: painting merged cell depends on scrolling technique
                    ScrollingStyle.PaintMergedCell(graphics, cellRange, cellContext);
                    mDrawnRange.Add(cellRange);
                }
            }
        }
Exemplo n.º 3
0
        public MFTestResults TextFlow_ScrollingStyleTest3()
        {
            if (CleaningWindow() != MFTestResults.Pass)
            {
                return MFTestResults.Fail;
            }
            MFTestResults testResult = MFTestResults.Pass;
            _lineCount = true;
            ScrollingStyle[] _sStyles = new ScrollingStyle[] { ScrollingStyle.First,
                ScrollingStyle.Last, ScrollingStyle.LineByLine, ScrollingStyle.PageByPage};
            for (int i = 0; i < _sStyles.Length; i++)
            {
                _style = _sStyles[i];
                UpdateWindow();
                if (_getStyle != _sStyles[i])
                {
                    Log.Comment("Expected ScrollingStyle '" + _sStyles[i] +
                        "' but got '" + _getStyle + "'");
                    testResult = MFTestResults.Fail;
                }
            }

            return testResult;
        }