background preloader

Delphi Basics

Delphi Basics
Related:  Delphi Programming

DelphiFAQ: Software Engineering Know How DelphiDabbler.com || Delphi Pascal source code, programming articles, tutorials and programs GExperts Delphi Central provider of Delphi programming tutorials VCL Components - Components, Scripts, Source Code Dr.Bob's Delphi Clinic: Delphi Property and Component Editors Delphi offers an Open Tools API, to allow programmers to extent the functionality of the Delphi IDE itself. There are four kinds of Open Tools APIs: property editors, component editors, experts/wizards and version control systems. This paper will focus on Property and Component Editors, giving several examples of how to write our own Delphi Property and Component Editors. Property Editors Property editors are extensions of the Delphi IDE. Existing Property Editors Before we actually take a look what a property editor looks like from the inside, let's first examine what kinds of property editors already exist in Delphi. If we count correctly, then there are at least 21 custom property editors registered by the DSGNINTF unit. TPropertyEditor The Object Inspector will offer default editing for all kinds of properties. A TPropertyEditor edits a property of a component, or list of components, selected into the Object Inspector. Win31: Win95:

Felix Colibri- Lexi, or the Quest for the Mythical Editor 1 - Introduction Who's Lexi ? Lexi is the name of the sample "document editor" used by the Gang of Four, Gof for short, as the introductory example to design patterns. This book written in 1996 by Erich GAMMA, Richard HELM, Ralph JOHNSON, John VLISSIDES literaly started the whole pattern movement. After introducing the Design Pattern idea, the Gof spent about 40 pages presenting a case study which explains how to use 8 typical patterns in the course of designing the "LEXI document editor". However the book does not present the full source code of Lexi. Googling on the web, you will find lots of "editors", and in source. HotDraw and jHotDraw Interview and UniDraw, which are editor frameworks MiniDraw as example for learning object oriented programmingfigure editor, mainly used as testbeds for Aspect Oriented Programming The Gof tell us in a note that Lexi is based on "Doc, a text editing application developed by Calder". In writing my own Lexi, my purpose was: 2 - The description of Lexi

Turbo Explorer Home Page A Beginner's Guide to Delphi Programming About the Course: This free online course is perfect for beginner developers as well as for those who want a broad overview of the art of programming with Borland Delphi. Developers will learn how to design, develop and test application using Borland Delphi. The chapters will cover the fundamental elements of creating Windows applications using Delphi, including the Integrated Development Environment (IDE) and the Object Pascal language. Developers will get up to speed quickly through real world, practical examples. This course is aimed to those who are new to programming, come from some other development environment (like MS Visual Basic, or Java) or are new to Delphi. Prerequisites: Readers should have at least a working knowledge of the Windows operating system. Chapters The chapters of this course are being created and updated dynamically on this site. Start with Chapter 1 : Introducing Borland Delphi Then continue learning, this course already has more than 18 chapters ...

Delphi programming articles and tutorials DelphiDabbler.com Open source software, Delphi components, Tutorials & more. ยป Sitemap Navigation Articles This page lists 26 articles and tutorials that discuss various aspects of programming. Full details of copyright are displayed at the bottom of each article. How To Embed GoogleEarth in your Delphi Application This article shows how to incorporate the GoogleEarth Plug-in into your Delphi application by hosting it in a TWebBrowser component. By David Hawk How to handle drag and drop in a TWebBrowser control Sometimes you need to be able to customise how a TWebBrowser control handles drag and drop, or you may need to prevent the control from accepting files dropped it. By Peter Johnson How to receive data dragged from other applications The standard Windows API method of handling drag and drop is fine for catching files dragged from Explorer, but how do we handle data dragged and dropped from other applications? How to get operating system version information How to access environment variables

Creating and Using DLLs from Delphi A Dynamic Link library, or DLL, is a collection of routines (small programs) that can be called by applications and by other DLLs. Like units, DLLs contain sharable code or resources, they provide the ability for multiple applications to share a single copy of a routine they have in common. The concept of DLLs is the core of the Windows architectural design, and for the most part Windows is simply a collection of DLLs. Naturally, using Delphi, we can write and use our own DLLs, and we can call functions in DLLs developed with other systems / by other developers (like Visual Basic, or C/C++). Creating a Dynamic Link Library The following few lines will demonstrate how to create a simple DLL using Delphi. For the beginning start Delphi and select File | New ... library TestLibrary; uses SysUtils, Classes, Dialogs; procedure DllMessage; export; begin ShowMessage('Hello world from a Delphi DLL') ; end; exports DllMessage; begin end. At the end of the source code we find an exports statement.

Delphi Tutorial: Running an external application w ShellExecute Launching an external program and waiting until it is terminated is quite another story... We can tell if a process has completed by monitoring its process handle. That process handle can be obtained by using one of two Win32 API-functions to start the external program: ShellExecuteEx or CreateProcess. The simplest method is: start the external application with ShellExecuteEx and then monitor the process handle with WaitForSingleObject. I wrapped it all up in a ready-to-go demo project (see picture above), which demonstrates the use of the functions discussed above. If the checkbox is checked, the demo will wait for the completion of the external program. A click on the second button prints the file whose name is in the edit-box above it. Finally, if an error occurs, such as specifying to run a non-existent program, or print a file that doesn't exist on your system, then an appropriate error message will show up. You can download the executable of the demo as EXEWDEMO.ZIP.

Related: