Vcl和FireMonkey中Button的继承关系学习
来源:互联网 发布:网络手势的含义带图片 编辑:程序博客网 时间:2024/05/20 04:10
1、新建一个VCL工程,在主窗口上放一个Button。
代码中看到新建的Button1为TButton类,现在来逐级查看父类:
好了,这里到TObject为止了。来梳理一下TButton的继承关系:
TButton-TCustomButton-TButtonControl-TWinControl-TControl-TComponent-TPersistent-TObject
2、新建一个Firemokey工程,在主窗口上放一个Button。
代码中看到新建的Button1为TButton类,现在来逐级查看父类:
好了,这里到TObject为止了。来梳理一下TButton的继承关系:
TButton-TCustomButton-TPresentedTextControl-TPresentedControl-TStyledControl-TControl-TFmxObject-TComponent-TPersistent-TObject
这里来总结一下VCL和Firemokey中TButton的异同:
1、类名都是TButton;
2、最后都是从TObject-TPersistent-TComponent继承而来;
3、Firemokey在VCL的TCustomButton到TComponent继承过程中,继承了更多的类,实现了更多的接口;
4、VCL是针对Windows的框架,而Firemokey框架不仅针对Windows还有MacOS、iOS、Android以及最新的Linux,所以中间会有更多的接口实现,以及在Firemokey中引入的TStyledContro风格化组件。
今天的学习就到这里了,明天学习VCL和Firemokey中Form的继承关系。
- Vcl和FireMonkey中Button的继承关系学习
- android中Button和TextView的关系
- ShowModal在VCL和Firemonkey中的使用区别
- Javascript中继承和Prototype的关系
- Javascript中继承和Prototype的关系
- Javascript中继承和Prototype的关系
- vcl架构中TPersistent类的学习
- Button 中 onTouch 和 onClick 关系
- 继承Button,重新定义Button的图片和label位置
- Java继承中属性、方法和对象的关系
- Java继承中属性、方法和对象的关系
- Java继承中属性、方法和对象的关系
- 面向对象中组合和继承的关系
- OC中protocol、category和继承的关系
- C++和Java继承关系中方法覆盖的不同
- Java继承中属性、方法和对象的关系
- OC中protocol、category和继承的关系
- MFC中设备上下文的概念和继承关系图解
- Android -- ActivityManagerService为应用创建进程流程简析
- OSI 7层模型和TCP/IP 4层网络模型详解
- 6、系统数据文件和信息
- 7.go开源groupcache项目笔记——关于gocode代码自动补齐
- 第一篇博客
- Vcl和FireMonkey中Button的继承关系学习
- Golang Notes
- 8.go开源groupcache项目笔记——groupcachepb代码
- HDFS安装及MapReduce(Python)
- 一维数组冒泡排序
- Linux下设置静态ip
- 108. Convert Sorted Array to Binary Search Tree(DFS)
- mysql学习—Mysql存储引擎
- mac上python3安装问题