コード例 #1
0
                    public override void MouseMoved(MouseEvent e)
                    {
                        int width      = this._enclosing.GetWidth();
                        int height     = this._enclosing.GetHeight();
                        int cellWidth  = width / this._enclosing.columnCount;
                        int cellHeight = height / this._enclosing.rowCount;
                        int column     = e.GetX() / cellWidth;
                        int row        = e.GetY() / cellHeight;

                        this._enclosing.selectedCell = new Point(column, row);
                        this._enclosing.Repaint();
                    }