在Delphi中ClientWidth与Width的作用一样,为什么要定义二个一样的属性??
ClientWidth与Width的作用一样,为什么要定义二个一样的属性?? 问题点数:20、回复次数:2Top
1 楼huojiehai(海天子)回复于 2003-08-03 11:39:57 得分 20
有滚动条时就不一样ClientWidth := width - 滚动条的With
Specifies the horizontal size of the control's client area in pixels.
property ClientWidth: Integer;
Description
Use 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.Top
2 楼belllab(菜鸟)回复于 2003-08-03 11:53:39 得分 0
在MDI内也不一样Top




