CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Delphi >  VCL组件开发及应用

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

楼主qqh198001(白狐)2003-08-03 11:33:10 在 Delphi / VCL组件开发及应用 提问

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

相关问题

  • Delphi属性设置问题?
  • ScaleHeight和ScaleWidth属性与Height和Width 属性有何不同?
  • ◆◆ 关于DELPHI属性编辑器的Grid ◆◆
  • ◆◆ 关于DELPHI属性编辑器的Grid ◆◆
  • 请问Width和ScaleWidth属性有何不同?
  • Access中Form的属性width,insideWidth,windowWidth有什么区别!!!
  • 动态生成的TextBox的 .Width属性怎样使其值Width为 100%?
  • delphi属性页下拉列表值如何加入
  • Delphi中类的属性可否是自定义类型?
  • Delphi 6.0中属性编辑器的解决方案

关键词

  • 属性
  • client
  • clientwidth
  • 作用
  • width
  • 一样的属性
  • 要定义二个
  • 滚动条
  • client area
  • property

得分解答快速导航

  • 帖主:qqh198001
  • huojiehai

相关链接

  • Delphi类图书
  • Delphi类源码下载
  • Delphi控件下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo