vcl delphi
关于课程: ( About the course: )
intermediate 中间The course is written by Wes Turner, brought to you by Zarko Gajic
该课程由Wes Turner撰写,由Zarko Gajic带给您
概述: ( Overview: )
This Guide is about developing Delphi programs without the "Forms" and "Controls" units or any of the Component Library. You will be shown how to create windows classes and windows, how to use the "Message Loop" to pass messages to the WndProc message handling function, etc...
本指南是关于开发没有“窗体”和“控件”单元或任何组件库的Delphi程序的。 将向您展示如何创建Windows类和Windows,如何使用“消息循环”将消息传递给WndProc消息处理功能,等等。
先决条件: ( Prerequisites: )
章节: ( Chapters: )
介绍: ( Introduction: )
The file size of a "standard" Delphi application is at least 250 Kb, due to the "Forms" unit, which will include a lot of code that may not be needed. Without the "Forms" unit, developing in API means that you will be coding in the .dpr (program) unit of your app. There will not be a usable Object Inspector or any components, this is NOT RAD, it is slow and there is no visual "Form" to see during development. But by learning how to do this you will begin to see how the Windows OS operates and uses window creation options and windows "messages" to do things. This is very useful in Delphi RAD with the VCL, and almost essential for VCL component development. If you can find the time and patients to learn about windows messages and message handling methods, you will greatly increase your ability to use Delphi, even if you don't use any API calls and only program with the VCL.
由于使用“表单”单元,“标准” Delphi应用程序的文件大小至少为250 Kb,其中将包含许多可能不需要的代码。 如果没有“表单”单元,则使用API进行开发意味着您将在应用程序的.dpr(程序)单元中进行编码。 不会有可用的对象检查器或任何组件,这不是RAD,它很慢,并且在开发过程中看不到任何可视的“窗体”。 但是,通过学习如何执行此操作,您将开始了解Windows操作系统如何运行以及如何使用窗口创建选项和窗口“消息”来执行操作。 这在带有VCL的Delphi RAD中非常有用,对于VCL组件开发几乎是必不可少的。 如果您有时间和耐心地学习Windows消息和消息处理方法,则即使您不使用任何API调用而仅使用VCL进行编程,也将大大提高使用Delphi的能力。
CHAPTER 1: When you read the Win32 API help, you see that the "C" language syntax is used. This article will help you learn the differences between the C language types and the Delphi language types. Discuss about questions, comments, problems and solutions related to this chapter!
第1章: 阅读Win32 API帮助时,您会看到使用了“ C”语言语法。 本文将帮助您了解C语言类型和Delphi语言类型之间的区别。 讨论与本章相关的问题,评论,问题和解决方案!
CHAPTER 2: Let's make a formless program that gets user input and creates a file (populated with system information), using only Windows API calls. Discuss about questions, comments, problems and solutions related to this chapter!
第2章: 让我们制作一个无格式程序,该程序仅使用Windows API调用即可获取用户输入并创建文件(填充有系统信息)。 讨论与本章相关的问题,评论,问题和解决方案!
CHAPTER 3: Let's see how to create a Windows GUI program with windows and a message loop. Here's what you'll find in this chapter: an intro to Windows messaging (with a discussion on message structure) ; about the WndMessageProc function, handles, the CreateWindow function, and much more. Discuss about questions, comments, problems and solutions related to this chapter!
第3章: 让我们看看如何使用Windows和消息循环创建Windows GUI程序。 您将在本章中找到以下内容:Windows消息传递简介(讨论消息结构); 关于WndMessageProc函数,句柄,CreateWindow函数等等。 讨论与本章相关的问题,评论,问题和解决方案!
More coming...
还有更多...
翻译自: https://www.thoughtco.com/guide-to-developing-delphi-programs-1058446
vcl delphi