Someone has said that "Delphi programmers who cannot develop controls are not real programmers." It is precisely because of its high scalability and support for a large number of third-party controls that Delphi can attract the critical eyes of countless programmers. Even developers who need to use other development tools for their work often miss the days and nights spent with Delphi. It has been more than a year since I came into contact with Delphi. I was overwhelmed by the hundreds of controls on the Delphi component panel, and now I can develop some difficult controls according to my needs. The road I have traveled has been very difficult, so hereby Writing this article and leaving my experience to those who come after me can be regarded as a generous gift to my “fellow juniors”!
One thing that needs to be explained is: before writing this article, I assume that the reader already has a certain understanding of the basic knowledge of object-oriented, so I will not elaborate on the concepts related to object-oriented in the article.
1. Trial test - TURLLabel control
Let's start our control development journey with a label control that can add hyperlinks!
Since it is Label, let us derive this control from Tlabel (actually it is best to derive it from TcustomLabel, but for simplicity purposes we will derive it from Tlabel here)!
1. Select "File"->"New"->"Component", the following dialog box will pop up:
Select Tlabel in Ancestor type, fill in TURLLabel in ClassName (the name can be any Take, but it must start with T, otherwise there will be problems when registering the control). Here Ancestor type represents the base class of the control, and TURLLabel represents the name of the control.
2. The visual effect of the hyperlink is underlined text, so we override the constructor of the parent class and modify the font attribute of the control in the constructor.
Statement of this Website
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn

Related recommendations

Android development tutorials and notes pdf version

Android file access and database programming knowledge. File operations mainly include reading files, writing files, reading static files, etc. It also introduces creating, adding file content and saving, opening files and displaying the content; database programming mainly introduces the SQLite database. The use includes knowledge of creating, deleting, opening databases, non-query SQL operation instructions, query SQL instructions-cursors, etc.
Mobile terminal
2024-02-29

Unity3d game development camera switching Chinese WORD version

This document mainly talks about camera switching in unity3d game development; I hope it will be helpful to everyone; interested friends can come and take a look.
Other manuals
2024-02-29

Android Chinese API collection chm version

Android Chinese Translation Group - A collection of Android Chinese APIs. API documentation (Reference) is the basis of Android development. In the past three years (2007-2010), the official Chinese version of the API has not yet been released. The Android Chinese Translation Group has gathered a group of people to engage in Android development. People, forum moderators, college students, graduate students, etc. use their spare time to translate Android APIs. The number of people has grown from 1 to 80, and the number of published translations has ranged from 1 to 50.
Mobile terminal
2024-02-29

Lucene learning and summary Chinese WORD version

This document mainly talks about the learning and summary of Lucene; Lucene is an efficient, Java-based full-text search library. I hope this document will help friends in need; interested friends can come and take a look.
Other manuals
2024-02-29

Maven series

Some companies do not provide external networks for programmers, so maven cannot be used to access remote warehouse addresses, so it is necessary to find a machine in the LAN that has external network permissions; build a nexus private server, and then programmers connect to this private server In this case, you can access the maven remote warehouse through this computer with a nexus private server. Interested friends can come and take a look
Other manuals
2024-02-29

Netty code analysis Chinese WORD version

This document mainly talks about Netty code analysis; Netty provides asynchronous, event-driven network application framework and tools to quickly develop high-performance, high-reliability network server and client programs; friends in need can download and read look
Other manuals
2024-02-29

windows thinkpad android environment setup problem Chinese WORD version

This document mainly talks about the problems of setting up the Windows ThinkPad Android environment; I hope this document will help friends in need; interested friends can come and take a look.
Mobile terminal
2024-02-29

Detailed explanation of UML class diagram Chinese WORD version

This document mainly talks about the detailed explanation of UML class diagram; in the static mechanism of UML, class diagram is a key point. It is not only the core concern of designers, but also the core concern of implementers. Modeling tools also generate code primarily based on class diagrams. Class diagram occupies a very important position among the 9 diagrams of UML. I hope this document will help friends in need; interested friends can come and take a look.
Other manuals
2024-02-29

Popular Recommendations

php7.3.8 offline Chinese manual (official version)

php7.3.8 official Chinese manual (chm format)

PHP7.2 Chinese manual

PHP Chinese manual download|chm|mobile version|pdf

html5 Chinese manual (CHM version)

HTML5 Chinese manual download (CHM version)

php 5.6 Chinese manual

PHP 5.6 Chinese manual download

PHP7.2 manual (latest version)

php7.2 development manual download CHM version

MySQL 5.1 Reference Manual

MySQL 5.1 Reference Manual Download
database
2017-02-10

HTML Chinese Manual (CHM version)

HTML Chinese manual (CHM version) download

Linux command list

Linux command encyclopedia download

ThinkPHP5.0 Development Manual

ThinkPHP5.0 Chinese complete manual download

JavaScript Reference Manual

JavaScript complete reference manual download