delphi 自定义控件
Components are essential elements of the Delphi environment. One of the most important features of Delphi is that we can use Delphi to create our own components.
组件是Delphi环境的基本元素。 Delphi最重要的功能之一是我们可以使用Delphi创建自己的组件 。
We can derive a new component from any existing component, but the following are the most common ways to create components: modifying existing controls, creating windowed controls, creating graphic controls, subclassing Windows controls and creating nonvisual components. Visual or not, with or without property editor, from scratch...you name it.
我们可以从任何现有组件中派生一个新组件,但是以下是创建组件的最常用方法:修改现有控件,创建窗口控件,创建图形控件,子类化Windows控件以及创建非可视组件。 不论是否可见,无论是否使用属性编辑器,您都可以从头开始...命名。
Developing Delphi components isn't a simple task, it involves quite a bit of knowledge of the VCL. However, developing custom components is not an impossible task; writing components is just pure programming.
开发Delphi组件不是一件容易的事,它涉及VCL的很多知识。 但是,开发自定义组件并非不可能。 编写组件仅仅是纯编程。