DelphiDabbler.com Articles http://www.delphidabbler.com/articles List of Delphi programming articles on DelphiDabbler.com en-gb Peter D Johnson 2010 (www.delphidabbler.com) Sun, 30 May 2010 00:00:00 +0000 http://blogs.law.harvard.edu/tech/rss How to customise the TWebBrowser user interface http://delphidabbler.com/articles?article=18 When we use TWebBroswer we often want to change the way it appears and acts to fit in to our application's look and feel. Here's how to override the IE context menu, change the border style, show or hide scroll bars and style the content without changing the HTML document. articles http://delphidabbler.com/articles?article=18 Sun, 30 May 2010 01:00:00 +0100 How to access environment variables http://delphidabbler.com/articles?article=6 Every Windows process gets a copy of some environment variables. Here's how to read and update them. articles http://delphidabbler.com/articles?article=6 Fri, 19 Feb 2010 00:00:00 +0000 How to load and save documents in TWebBrowser in a Delphi-like way http://delphidabbler.com/articles?article=14 A presentation of the development of a wrapper class for TWebBrowser that simplifies navigation, the loading and saving of HTML when using the control. articles http://delphidabbler.com/articles?article=14 Sat, 06 Feb 2010 00:00:00 +0000 How To Embed GoogleEarth in your Delphi Application http://delphidabbler.com/articles?article=26 This article shows how to incorporate the GoogleEarth Plug-in into your Delphi application by hosting it in a TWebBrowser component. The GEDemo application divides its functionality between JavaScript and Delphi, and provides a working example of implementing communication between these two environments. articles http://delphidabbler.com/articles?article=26 Wed, 16 Dec 2009 00:00:00 +0000 How to create and use HTML resource files http://delphidabbler.com/articles?article=10 A review of the techniques used to create HTML resources for embedding in a program, along with a discussion of Internet Explorer's use of the res:// protocol to access and display embedded HTML. articles http://delphidabbler.com/articles?article=10 Sat, 26 Sep 2009 01:00:00 +0100 How to call JavaScript functions in a TWebBrowser from Delphi http://delphidabbler.com/articles?article=21 Sometimes it is necessary to call JavaScript function embedded within a document displayed in a TWebBrowser control. Here's how. articles http://delphidabbler.com/articles?article=21 Tue, 23 Jun 2009 01:00:00 +0100 How to make a TWebBrowser become the active control when clicked http://delphidabbler.com/articles?article=19 When you click inside a TWebBrowser control, it does not become the active control, unlike other controls. This article shows how to detect clicks in the control and make it the form's active control. articles http://delphidabbler.com/articles?article=19 Sat, 21 Feb 2009 00:00:00 +0000 How to run a single instance of an application http://delphidabbler.com/articles?article=13 Describes how to ensure only a single instance of an application runs and how to pass command line data to a running program instance. articles http://delphidabbler.com/articles?article=13 Fri, 20 Feb 2009 00:00:00 +0000 How to call Delphi code from scripts running in a TWebBrowser http://delphidabbler.com/articles?article=22 When using a TWebBrowser control to display a user interface you may need to call your program's Delphi code in response to user input in the TWebBrowser or to get information to be displayed by the control. This article shows how. articles http://delphidabbler.com/articles?article=22 Mon, 31 Mar 2008 01:00:00 +0100 How to use the TListView OnCustomDrawXXX events http://delphidabbler.com/articles?article=16 TListView's OnCustomDraw, OnCustomDrawItem and OnCustomDrawSubItems events are useful to customise the appearance on a list view control without having to handle all the painting yourself. This article shows how to use these events in a report style list view control. articles http://delphidabbler.com/articles?article=16 Sun, 08 Jul 2007 01:00:00 +0100 How to catch files dragged and dropped on an application from Explorer http://delphidabbler.com/articles?article=11 A guide to using the Windows API to catch and process files dropped from Windows Explorer. articles http://delphidabbler.com/articles?article=11 Wed, 30 May 2007 01:00:00 +0100 How to handle drag and drop in a TWebBrowser control http://delphidabbler.com/articles?article=25 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. This article explains how. articles http://delphidabbler.com/articles?article=25 Mon, 28 May 2007 01:00:00 +0100 How to receive data dragged from other applications http://delphidabbler.com/articles?article=24 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? This article explains. articles http://delphidabbler.com/articles?article=24 Mon, 11 Dec 2006 00:00:00 +0000 How to detect the types of executable files http://delphidabbler.com/articles?article=8 This article explains how to detect if a file is a DOS program or a 16 bit or 32 bit Windows executable program or DLL. Formerly featured as a 'Great Article' on Delphi3000.com! articles http://delphidabbler.com/articles?article=8 Mon, 15 May 2006 01:00:00 +0100 How to get operating system version information http://delphidabbler.com/articles?article=23 We often need to detect the version and various other characteristics of the operating system from our applications. Here's how to do this from Delphi. articles http://delphidabbler.com/articles?article=23 Tue, 21 Feb 2006 00:00:00 +0000 How to integrate help files into the Delphi 3-7 IDE http://delphidabbler.com/articles?article=15 Information on the changes that have to be made to Delphi's help files in order for your help files to be integrated with the Delphi help system. articles http://delphidabbler.com/articles?article=15 Mon, 14 Nov 2005 00:00:00 +0000 How to dynamically add data to an executable file http://delphidabbler.com/articles?article=7 Here is an alternative way of embedding data in a program by appending the data to the end of the executable file as a payload. In the article we create two classes to help read and write the data. articles http://delphidabbler.com/articles?article=7 Mon, 24 Oct 2005 01:00:00 +0100 How a non-windowed component can receive messages from Windows http://delphidabbler.com/articles?article=1 Sometimes we need a non-windowed component to receive Windows messages. Here's how and why. articles http://delphidabbler.com/articles?article=1 Thu, 21 Jul 2005 01:00:00 +0100 How to store files inside an executable program http://delphidabbler.com/articles?article=2 Its sometimes useful to be able to distribute read-only files embedded in your programs. This article explains why and discusses how. articles http://delphidabbler.com/articles?article=2 Thu, 16 Jun 2005 01:00:00 +0100 How to read data embedded in your program's resources http://delphidabbler.com/articles?article=3 Having embedded files and/or data in your executable (article #2) you need to get them out again - read on! articles http://delphidabbler.com/articles?article=3 Thu, 16 Jun 2005 01:00:00 +0100 How to remember a window's size, state and position http://delphidabbler.com/articles?article=4 When I open an application I like to have it remember the size and position of its window when it was last closed. Here's how to do it with Delphi forms. articles http://delphidabbler.com/articles?article=4 Thu, 16 Jun 2005 01:00:00 +0100 How to write filters that extend the functionality of the TStream classes http://delphidabbler.com/articles?article=5 Here's the basis for a set of classes that wrap around any TStream object to allow you to write formatted data to any stream. articles http://delphidabbler.com/articles?article=5 Thu, 16 Jun 2005 01:00:00 +0100 How to get notified when the content of the clipboard changes http://delphidabbler.com/articles?article=9 Sometimes we need need to know when the content of the clipboard has changed. This article shows how. articles http://delphidabbler.com/articles?article=9 Thu, 16 Jun 2005 01:00:00 +0100 How to add a program to the Explorer Send To menu http://delphidabbler.com/articles?article=12 A look at adding an entry to Explorer's Send To menu and handling files sent to an application using the menu. articles http://delphidabbler.com/articles?article=12 Thu, 16 Jun 2005 01:00:00 +0100 How to set a component's default event handler http://delphidabbler.com/articles?article=17 When you double click many components at design time Delphi creates an empty event handler for the default event. Sometimes you need to specify a different default event than that used by Delphi. Here's how. articles http://delphidabbler.com/articles?article=17 Thu, 16 Jun 2005 01:00:00 +0100 How to extract version information using the Windows API http://delphidabbler.com/articles?article=20 Excutable files can contain a resource containing version information. The Windows API provides tools for extracting the information. Here's how to use it. articles http://delphidabbler.com/articles?article=20 Thu, 16 Jun 2005 01:00:00 +0100