创建component的方法集锦

转自http://delphi.about.com/library/weekly/aa122899b.htm

Delphi Developers Guide. Online book straight from Borland. Featuring chapters:
Overview of component creation, Object-oriented programming for component writers, Creating properties, Creating events, Creating methods, Using graphics in components, Handling messages, Making components available at design time, Modifying an existing component, Creating a graphic component, Customizing a grid, Making a control data aware, Making a dialog box a component.

Creating Commercial Components.
This white paper has been constructed to help component authors develop and enhance professional software components for delivery on the 'open market'. Information covered in the document is based on the knowledge and expertise of those component authors who have successfully established themselves in the component marketplace. The content is aimed at developers who wish to create components based on the Borland Visual Component Library (VCL) framework.

Introduction to Component Building.
This article describes the steps involved in creating a new VCL component and focuses on several key aspects of the VCL architecture upon which all components are built.

Delphi Component Building.
In this article, read about every aspect of Delphi Component building. Design a TTicTacToe component and learn about: how to build our own components for Delphi, how to add properties, methods and custom events to them, how to wrap them around DLLs, how to install them, how to design a palette bitmap and write on-line help to support the component user.

Creating Custom Components Courseware
These pages cover creating a simple component, called TCloseButton. There is also a great introduction to object programming and manipulation.

Building SuperComponents in Delphi [download]
SuperComponents, also known as aggregate or compound components, are collections of existing sub-components and their relationships combined into a single component. The collections are typically arranged inside a container parent component that manages the visual layout of the sub-components.

Component Best Practices, Part I
This first part demonstrates some of the best approaches to building components, and at the same time provides tips on deciding on the best base class to inherit from, using virtual declarations, the complexities of overriding, and so on.

Component Best Practices, Part II
Quite often it's necessary to write components that perform more advanced functions. These components often need to either reference other components, have custom property data formats, or have a property that owns a list of values rather than a single value. In this article, the author will guide you through various examples that demonstrate these techniques.

Creating Components in Delphi
General component creating article, read about properties, methods, inheritance and other topics. Design your own TMyMemo component.

Component Building for the Professional
This paper describes the critical extra steps that must be taken in order to develop professional, commercial-quality components. Specific topics will include creating online component help, effectively designing packages for component distribution, supporting multiple versions of Delphi, and how supporting automatic one-step installation.

Programming Language Independent Controls with Delphi
This paper provided the basic knowledge you need in order to encapsulate Windows custom controls in Delphi component. Doing this allows you to get maximum usage out of your controls with multiple compilers or programming language - with a great deal of code re-use.

Creating Components.
Online chapter from the Teach Yourself Borland Delphi 4 in 21 Days book. How to create the TFlashingLabel component, a regular Label component that flashes its text on the screen.

Why create properties?
Properties provide significant advantages, both for you as a component writer and for the users of your components. The most obvious advantage is that properties can appear in the Object Inspector at design time.

Using Collections
When writing components, you often need to store more than one value in a property. TStatusBar.Panels is an example of this situation. To establish this behavior, you need to use collections. See how to build a descendant from TCustomLabel (TLWMultiLabel) that displays one of several different captions depending on a caption index.

Small writing components tutorial [download]
Introducing a TComm component for a very simple terminal program that sends out what you type and displays what is being received.

Add Some Polish to Your Components with Delphi 5
Delphi 5 adds considerable muscle to component development, particularly in regard to component and property editors. You have to learn to keep design-time and runtime separate, however.

Top 10 Tricks for Delphi VCL Database Developers
This paper outlines some of those techniques that should be known to every VCL database developer.

Creating an ASP Component
This tutorial and related example source code demonstrate how to create an ASP component using Delphi. This includes how to add in support for MTS, just-in-time activation, and how to access the ASP built-in objects.

Building ActiveX Controls with Delphi
This course is about how to build an ActiveX control using Delphi 3. In addition to presenting a tutorial on how to use Delphi 3's wizards to convert an existing VCL control into an ActiveX control, the course introduces areas where the control designer may want to extend the basic code, and provides in-depth explanation of Delphi's DAX class hierarchy.

The Prefix Registry
Each Delphi component that is created must have a unique name. See some ideas/suggestions.

What's in the Package?
Design-time and Run-time Packages in Delphi.

Various custom components with code
Growing collection of articles on component writing tips and techniques

转载于:https://www.cnblogs.com/forrestsun/articles/222664.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值