GetClientRect method
Implementation
TRect GetClientRect()
{
if(HandleAllocated())
{
if(_handle!.handle.offsetParent==null)
{
TRect rect = super.GetClientRect();
rect.right-=2;
rect.bottom-=2;
return rect;
}
return TRect(0, 0, _grid!.clientWidth - 2, _grid!.clientHeight - 2);
}
return super.GetClientRect();
}