ClientWidth与Width的作用一样,为什么要定义二个一样的属性??

解决方案 »

  1.   

    有滚动条时就不一样ClientWidth := width - 滚动条的With
    Specifies the horizontal size of the control's client area in pixels.property ClientWidth: Integer;DescriptionUse ClientWidth to read or change the width of the control抯 client area. ClientWidth is equivalent to ClientRect.Right.For TControl, ClientWidth is the same as Width. Derived classes may implement a ClientWidth property that differs from Width. For example, the ClientWidth of a form is the value of the Width property minus the width of the resize border and scrollbars.