Exemplo n.º 1
0
        public BaseControl GetSubControl(int aX, int aY)
        {
            aX -= fLeft;
            aY -= fTop;

            BaseControl ctl = GetClientControl(aX, aY);
            BaseControl result;

            if (ctl == null)
            {
                result = this;
            }
            else
            {
                result = ctl.GetSubControl(aX, aY);
            }
            return(result);
        }