2020年11月24日

Delphi之创建组件模板(Component Template)

摘要: New Term 组件模板(Component Template)是指修改后保存下来供以后再使用的一个或一组组件。 组件模板可用来创建、保存和重复使用组件组。实际上,组件模板不必是一组组件,完全可以是单个组件。举一个小例子对理解组件模板的用途会很有帮助,但先要简要介绍一下Windows编辑控件(ed 阅读全文

posted @ 2020-11-24 16:50 癫狂编程 阅读(180) 评论(0) 推荐(0)

delphi Controls Components 属性

摘要: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) mm 阅读全文

posted @ 2020-11-24 16:02 癫狂编程 阅读(257) 评论(0) 推荐(0)

Delphi 2009 之 TCategoryPanelGroup[1]: ChevronAlignment 等

摘要: 制作过程:先添加一个 TCategoryPanelGroup, 再从其右键菜单 -> New Panel, 反复添加三个 TCategoryPanel.本例测试了:TCategoryPanelGroup 的 ChevronAlignment 属性、CollapseAll 和 ExpandAll 方法 阅读全文

posted @ 2020-11-24 15:59 癫狂编程 阅读(283) 评论(0) 推荐(0)

delphi xe 10分组按钮CategoryButtons 折叠按钮

摘要: 设计时界面: 代码如下: object Form1: TForm1 Left = 0 Top = 0 Caption = 'Form1' ClientHeight = 230 ClientWidth = 261 Color = clBtnFace Font.Charset = DEFAULT_CHA 阅读全文

posted @ 2020-11-24 15:54 癫狂编程 阅读(607) 评论(0) 推荐(0)

Delphi ControlCount和ComponentCount的区别

摘要: ComponentCount指打开的窗体所拥有的控件个数,包含所有子组件、孙组件(子组件内的子组件) 如上图,Form1的ComponentCount是13,而Panel1的ComponentCount为0 ControlCount指有多少个控件将自己做为父容器。只向下统计到子组件,而不包含孙组件 阅读全文

posted @ 2020-11-24 15:51 癫狂编程 阅读(245) 评论(0) 推荐(0)

ComponentCount和ControlCount区别

摘要: 很多时候会将一个Panel1放在Form1上,然后再将一个Button1放在Panel1上,这样的话,这个Button1的Owner就是Form1而Parent则是Panel1。 所有的Delphi的Component都有Owner 属性,Owner属性表示这个Component的所有者是谁,比如上 阅读全文

posted @ 2020-11-24 13:51 癫狂编程 阅读(200) 评论(0) 推荐(0)

导航

好的代码像粥一样,都是用时间熬出来的