Published: Thu, 08 Dec 2016 11:14:01 +0000
2016-12-08T11:14:01ZLearn symbolic constant names and keyboard equivalents for the virtual key codes used by Windows. How to enhance the functionality of a TDBgrid component.
2016-12-08T11:14:01ZContrary to most other Delphi data-aware controls, the DBGrid component has many nice features and is more powerful than you would have thought. The
2016-12-08T11:14:01ZI do not know when and where, but long time ago I read the following: "Delphi programming is the mutts
2016-12-08T11:14:01ZHave you ever needed to open documents in a file listbox, just by double clicking on them, without opening the associated program first? Learn how.
2016-12-08T11:14:01ZA Dynamic Link library, or DLL, is a collection of routines (small programs) that can be called by applications and by other DLLs. Using Delphi, we can write and use our own DLLs, and we can call functions in DLLs developed with other systems / by other developers. Find out how.
2016-12-08T11:14:01ZIntroduced in Delphi 2009, the TDictionary class, defined in Generics.Collections unit, represents a generic hash table type collection of key-value pairs. In Delphi, the TDictionary is defined as a hash table. Hash tables represents a collection of key-and-value pairs that are organized based on the hash code of the key. Hash tables are optimized for lookups (speed). When a key-value pair is added to a hash table, the hash of the key is computed and stored along with the added pair.
2016-12-08T11:14:01ZThe concept of arrays in Delphi is simple: arrays allow us to refer to a series of variables by the same name and to use a number (an index) to tell them apart. Arrays have both upper and lower bounds, and the elements of the array are contiguous within those bounds.
2016-12-08T11:14:01ZBefore you can call routines defined in DLL, you must import them. Functions exported from a DLL can be imported in two ways: by declaring an external procedure or function (static), or by direct calls to DLL specific API functions (dynamic). What should be used when: static or dynamic loading of DLLs in Delphi.
2016-12-08T11:14:01ZA Beginner's Guide to Delphi Programming. Free online programming tutorial / course for beginner developers. Focus on Borland Delphi.
2016-12-08T11:14:01ZLearn all about coloring DBGrid. Learn how to enhance the functionality of a TDBgrid component using colors to distinguish yourself from others.
2016-12-08T11:14:01ZWorking with GIF images in Delphi. Need to display an animated GIF image in a Delphi application? Even though Delphi does not natively support GIF image files formats (like BMP or JPEG) there are a few great (free source) components available on the Net, which add the ability to display and manipulate GIF images at run as well as at design time to any Delphi application.
2016-12-08T11:14:01ZA Delphi function is a routine returning a value. A single value? Yes, No. No, a Delphi function can return multiple values and there are different ways how to achieve this goal. Either rely on VAR (by-reference) parameters or return a record, or something even more complex...
2016-12-08T11:14:01ZIs the mouse over a component? Was a mouse button pressed? Which button was it? Did the user release a button, which one? Exactly where inside the form is the mouse? Did the user move the mouse out of the form into another form?
2016-12-08T11:14:01ZGet familiar with the OnKeyDown, OnKeyUp, and onKeyPress Delphi event procedures to respond to various key actions or handle and process ASCII characters along with other special purpose keys.
2016-12-08T11:14:01ZWhen you start programming in Delphi you might get errors like
2016-12-08T11:14:01ZThe Win 3.1 Delphi components palette group includes several components that enable us to build our own custom File Open or File Save dialog box. The components are TFileListBox, TDirectoryListBox, TDriveComboBox, and TFilterComboBox. Let's see how we can build a simple File Navigating dialog box with these components and just a few lines of code.
2016-12-08T11:14:01ZThe .INI files have a text-based file format for representing application configuration data in a format which is easily editable by humans and readable by a simple automatic parser. Learn how to use Delphi's TIniFile to read and write INI configuration files.
2016-12-08T11:14:01ZWhat You Need to Know About Delphi Programming. The purpose of this page is to orient newcomers with an overview of some special features of the About Delphi Programming Web site.
2016-12-08T11:14:01ZAbout.com's Delphi Programming site (http://delphi.about.com) proudly presents: free online programming tutorials for (beginner) Delphi developers!
2016-12-08T11:14:01ZLearn about records, Delphi's data structure that can mix any of Delphi's built in types including any types you have created.
2016-12-08T11:14:01ZThis article will show you how to use the TClipboard object to implement cut-copy-paste features in your Delphi application.
2016-12-08T11:14:01ZThe TTreeView Delphi component displays a hierarchical list of items - tree nodes. A node is presented by node text and an optional image. In real-world applications your tree nodes would need to carry more info: some more properties or even an entire custom object. How to?
2016-12-08T11:14:01ZHow to add menu items to a Menu (or Popup menu) at run-time, how to respond to the OnClick event. Plus: how to extend the TMenuItem to hold custom string property.
2016-12-08T11:14:01ZSend email messages with attachments using Indy and Delphi. Full source code to a simple
2016-12-08T11:14:01ZTo speed up data processing, for example, fetching data from the database to create reports, you can add an additional thread to fetch and operate on the result (recordset). Learn about the traps in writing Multithreaded Delphi Database Queries with dbGo (ADO).
2016-12-08T11:14:01ZDelphi organizes applications into what is called projects. A project is made up of the visual interface along with the code that activates the interface. Each project can have multiple forms, allowing us to build applications that have multiple windows. Find out about Delphi's Project File in this article!
2016-12-08T11:14:01ZMulti-threading in Delphi lets you create applications that include several simultaneous paths of execution. When several threads are running in the application a question arises: how to update your GUI (user interface) as a result of a thread execution. The question lies in the TThread class Synchronize method.
2016-12-08T11:14:01ZEverything you ever wanted to know about DLLs and Delphi but didn't know where to look for answers (or were to afraid to ask)
2016-12-08T11:14:01Zclass="no-js" itemscope itemtype="http://schema.org/Article" > itemprop="description" >The idea of this
2016-12-08T11:14:01ZAlong with the extended RTTI in Delphi 2010, a new language feature was introduced: Attributes. Attributes are a language feature in Delphi that allows annotating types and type members with special objects that carry additional information. A few examples to get you started...
2016-12-08T11:14:01Zclass="no-js" itemscope itemtype="http://schema.org/Article" > itemprop="description" >Users accustomed
2016-12-08T11:14:01ZOverview of dbExpress, along with a collection of tutorials and articles on building database applications using this data access technology.
2016-12-08T11:14:01ZThe differences between a Delphi component Owner and its Parent explained. Plus: when to use the Controls and Component properties of a Delphi component.
2016-12-08T11:14:01ZDelphi's implementation of the rich editor control (TRichEdit) does *not* expose the default context popup menu when the rich edit is right-clicked. Here's how to implement the default context popup for a rich edit control
2016-12-08T11:14:01ZAn overview of VCL components allowing you to access a MySQL database from Delphi using standard data controls without using BDE/ADO/ODBC. Plus a few MYSQL related tools.
2016-12-08T11:14:01ZLearn about placing Delphi applications in the System Tray in easy steps. The perfect place form programs can run for a long time without user interaction.
2016-12-08T11:14:01ZNeed to create, encrypt or manage PDF (Portable Document Format) files from Delphi? Using the tools and components in this listing you will get powerful control of PDF documents in your applications. PDF is a worldwide standard for electronic documents. It was originally developed by Adobe.
2016-12-08T11:14:01ZWhat most Delphi developers are not aware of, is that you can even implement the OnMouseHover behavior to change the display (color, font, etc.) of the DBGRid's (data) row underneath the mouse - thus making it look like todays web driven interfaces.
2016-12-08T11:14:01ZGenerics, a powerful addition to Delphi, were introduced in Delphi 2009 as a new langage feature. Generics or generic types (also know as parametrized types), allow you to define classes that don't specifically define the type of certain data members. Get ready to use Generics.
2016-12-08T11:14:01ZThe TListView Delphi control displays and manages a list of items, displayed in columns, vertically or horizontally, with small or large icons. If you are using Delphi 2007, Delphi 7 or any other previous version, you can also have grouping (with expand, collapse) functionality in the TListView control. Here's one implementation idea.
2016-12-08T11:14:01ZAn introduction to pointer data type in Delphi. What are pointers, why, when and how to use them.
2016-12-08T11:14:01Zclass="no-js" itemscope itemtype="http://schema.org/Article" > itemprop="description" >A feature of the
2016-12-08T11:14:01ZDelphi makes it easy to program dragging and dropping into our applications. You can even drag and drop from one form to another.
2016-12-08T11:14:01ZLearn how to track the mouse activity even when your application is not active, sits in the Tray or does not have any UI at all. By installing a system wide (or global) mouse hook you can track what the user is doing with the mouse and act accordingly.
2016-12-08T11:14:01ZExtending Delphi functions and procedures with default (optional) parameters and method overloading.
2016-12-08T11:14:01ZThe MD5 Message-Digest algorithm is used to check the integrity of files. Learn how to easily create a function to calculate the MD5 hash for a given file.
2016-12-08T11:14:01ZCreating a new Delphi (VCL, FMX) application would result in creating a single application (program) where all the units and forms used in the program would be compiled/linked into a singe executable file. If you would like to have the same code base in one program but also have an option to build two (or more) different applications - you should be looking at Delphi's conditional compilation.
2016-12-08T11:14:01ZLooking for a single-file, single-user database for your next Delphi application? Need to store some application specific data but you do not want to user the Registry / INI / or something else?
2016-12-08T11:14:01ZDelphi's Pos function returns an integer specifying the position of the first occurrence of one string within another.
2016-12-08T11:14:01ZFull source code of the TColorButton Delphi component, an extension to the standard TButton control, with font color and background color.
2016-12-08T11:14:01ZThere are situations when you want to display a list of strings to the user, for example in the list box control, but also have a way to store one more additional string (or event an object instance) along the one displayed to the user. Here's how when using Delphi.
2016-12-08T11:14:01ZWorking with binary files from Delphi. Use Delphi to manage writing, reading and updating your own types of files.
2016-12-08T11:14:01Zclass="no-js" itemscope itemtype="http://schema.org/Article" > itemprop="description" >A "Button with
2016-12-08T11:14:01ZThe Understanding Delphi Class (and Record) Helpers article introduces a feature of the Delphi language allowing you to extend the definition of a class or a record type by adding functions and procedures (methods) to existing classes and records without inheritance. In XE3 Delphi version, record helpers became more powerful by allowing to extend simple Delphi types like strings, integers, enums, sets and alike. Here's a sample helper for a set of bytes.
2016-12-08T11:14:01ZIn most of my Delphi applications I'm using INI files to store configuration options. For one particular situation I wanted to somehow hide the content of the INI file. Yes, INI files are not to be used to store critical data, but in this case I only simply wanted to have a no-eye situation. Let's see how to crypt and uncrypt INI files.
2016-12-08T11:14:01ZWhispering about reverse engineering Delphi applications: 'I have a Delphi program's .exe, can I decompile it and get the source?'. Page 3.
2016-12-08T11:14:01ZA guide to developing Delphi programs in Windows API (without the use of the VCL). Free online programming course for intermediate/advanced Delphi developers. Focus on raw Windows API programming.
2016-12-08T11:14:01ZOne of the keys to traditional Windows programming is handling the messages sent by Windows to applications. Handling Windows Messages the Delphi way!
2016-12-08T11:14:01ZHow to sort records in Delphi DbGrid by clicking on the column title. Plus: how to change the appearance of the selected column title with sort order.
2016-12-08T11:14:01ZThese top Delphi reporting tools easily create complex reports that directly link to a Delphi EXE. The tools include a report engine, report designer, and a previewer.
2016-12-08T11:14:01ZFree online database programming course for beginner Delphi developers. Focus on ADO techniques.
2016-12-08T11:14:01ZFind out how to exploit the powers of the Sender parameter in Delphi: share event handlers and more.
2016-12-08T11:14:01ZLearn how to programmatically download a web document from the Internet using Delphi and WinInet API.
2016-12-08T11:14:01ZPut shortly, a hook is a function you can create as part of a dll or your application to monitor the 'goings on' inside the Windows operating system. Hooks.pas ensures hooking in Delphi applications is easy.
2016-12-08T11:14:01ZLearn about Date/Time Delphi functions and procedures in RTL.
2016-12-08T11:14:01ZEverything you need to know about Delphi and the Extensible Markup Language. Find out about creating and parsing XML documents, look for parser components and more.
2016-12-08T11:14:01ZLearn how to save published properties of a class into a stream / file and read back. Use it to store your Delphi application specific configuration data.
2016-12-08T11:14:01ZWindows Service applications take requests from client applications, process those requests, and return information to the client applications. They typically run in the background, without much user input. Services can be automatically started when the computer boots, can be paused and restarted, and do not show any user interface.
2016-12-08T11:14:01ZThe TStopWatch Delphi class implements a very accurate process execution timer and provides a set of methods and properties that you can use to accurately measure elapsed time.
2016-12-08T11:14:01Zclass="no-js" itemscope itemtype="http://schema.org/Article" > itemprop="description" >Delphi provided
2016-12-08T11:14:01ZResources support the program but are not executable code. Learn how Delphi uses standard Windows-format resource files: icons, bitmaps and cursors.
2016-12-08T11:14:01ZHaving all your background threads running at the same time is not something Windows would be happy with. While Delphi does allow you to easily create a separate thread (by extending the TThread class) it does not provide a thread pool implementation out of the box. The OTL does - here's a sample thread pool for your background tasks implemented in OmniThreadLibrary.
2016-12-08T11:14:01ZUnfortunately, if you need to know what list view item was clicked or double clicked you cannot simply handle the OnClick / OnDblClick events to get the clicked item. You need to call the GetHitTestInfoAt function and make sure the click event occurred over an actual item. Here's how.
2016-12-08T11:14:01ZOne of the Delphi language features not found in other modern languages is the notion of sets. Delphi's set type is a collection of values of the same ordinal type. Learn about Delphi sets to better understand Delphi source code.
2016-12-08T11:14:01ZLooking for a free source multi-purpose Delphi component collection to add more power to your applications? Look no more, here's a list of the best Delphi component (free with source) sets on the Net!
2016-12-08T11:14:01ZDelphi string handling routines explained: declarations, descriptions and examples.
2016-12-08T11:14:01ZLearn how to read and manipulate XML documents with Delphi using the TXMLDocument component. Let's see how to extract the most current
2016-12-08T11:14:01ZMore sophisticated Mouse techniques. Is mouse Present? Handling OnMouseEnter, OnMouseLeave. Restrict movement, Set Position, Faking clicks, etc.
2016-12-08T11:14:01ZUnderstanding and using Borland Delphi Class procedures / functions. What they are and how to find a practical use for them.
2016-12-08T11:14:01ZAdding components to a DBGrid. Here's how to place a check box into a DBGrid. Create visually attractive user interfaces for editing boolean fields.
2016-12-08T11:14:01ZTo use a DLL stored inside a Delphi application executable file, the DLL first needs to be stored on the file system. Does it? Here's how to load a DLL from a resource directly into memory and use it without saving it to the hard-drive.
2016-12-08T11:14:01ZAn introduction to Delphi Pascal. Before you start developing more sophisticated applications by using the RAD features of Delphi, you should learn the basics of the Delphi Pascal language.
2016-12-08T11:14:01Zclass="no-js" itemscope itemtype="http://schema.org/Article" > itemprop="description" >With the inclusion
2016-12-08T11:14:01ZIf you need to implement some kind of authorization for your Delphi application you might want to display a login / password dialog *before* the main form is created and displayed to the user. In short, the idea would be to create, display, and destroy the
2016-12-08T11:14:01ZIf, for whatever the reason, you need to terminate the running instance(s) of your application when the user decides to start a new instance, you need to find a mechanism to notify all the running instances (and optionaly) close them. This article shows you one such mechanism when using Delphi.
2016-12-08T11:14:01ZHere's how to obtain a computer's IP address by using the Socket API and Delphi's Pascal. Icmp.dll allows developers to write ping applications on Windows.
2016-12-08T11:14:01ZThis document describes what Windows hooks are and how to use them within a Delphi application.
2016-12-08T11:14:01ZNo title bar! How can we drag such a window? It's easy and fun: let's make a Delphi form move by clicking (and dragging) in it's client area.
2016-12-08T11:14:01ZHere's how to save a web page displayed inside a WebBrowser (TWebBrowser component) as a raw HTML file or into a single (MHT) file (MHTML format: web archive - single file) programmatically using Delphi.
2016-12-08T11:14:01ZAs with menus (menu items), an application can create an owner-drawn combo box to take responsibility for painting list items. An owner-drawn combo box can list/show information other than text strings - usually some graphical elements. Let's see how you can do it in Delphi.
2016-12-08T11:14:01ZWhen using the TVirtualStringTree, each tree node can have several images. One is the check image which is supplied by internal image lists or a special external list (CustomCheckImages property). Another one is the state image and yet another one the normal/selected image. What to do when more images are needed for a node...
2016-12-08T11:14:01ZIf you allow a user to customize DBGrid's appearance at run time (Columns width and position), when the form is closed and reopened, all the user changes are lost. For a better user experience it would be ideal if your application could somehow store (and load when needed) all the changes the user has made to the Grid appearance. Here's how.
2016-12-08T11:14:01ZWith AsyncCalls you can execute multiple Delphi functions at the same time and synchronize them at every point in the function or method that started them. Here's an example project taking advantage of the thread pool implementation with CancelAll and WaitAll.
2016-12-08T11:14:01ZFree online Borland Delphi OOP Course: Chapter Overview.
2016-12-08T11:14:01ZPreparing to code with no barriers. See how to overcome the compiler version problem: compiling Delphi code for various Delphi versions.
2016-12-08T11:14:01ZTQPDF - Delphi wrapper for the QPDF.DLL. QPDF is capable of creating linearized (also known as web-optimized) files and encrypted files. It is also capable of converting PDF files with object streams (also known as compressed objects) to files with no compressed objects or to generate object streams from files that don't have them (or even those that already do).
2016-12-08T11:14:01ZLearn about creating a console mode application with Delphi; a text-mode program that runs without a graphical interface. See how to capture the output.
2016-12-08T11:14:01ZNo code is error free! Some code is full of errors on purpose! What are exceptions and how they are handled by Delphi and how you can handle exceptions to help yourself and your users use a more robust and user friendly application. All inside!
2016-12-08T11:14:01ZHow to pass command-line parameters to your Delphi application and how to handle them.
2016-12-08T11:14:01ZCreating a console mode application with Delphi; a text-mode program that runs without a graphical interface. Learn more about no GUI Delphi applications.