This page presents information on how to install components into the Delphi IDE for various Win32 versions of Delphi. The notes also cover how to install IDE extensions or make simple units available in design time packages. It is assumed you are installing source code, not pre-compiled units...
See "How to call Delphi code from scripts running in a TWebBrowser" for an example of how we reuse TNulWBContainer. In the following two sections we will develop the code for these classes.Developing a reusable base class Recall that this class, TNulWBContainer, will have all the features...
1) Start Delphi, and followComponent -> Import ActiveX control ...,and you will see: 2) In theImport ActiveXdialogue box, selectXChartfrom Ultimaserial 3) Click theInstallbutton, thenOKs to install XChart control to ActiveX tab to be used in Step 7) 4) Repeat 1) to 3) to install ...
In code this would look something like this: 1uses 2 System.Win.Registry; 3 4type 5 TDelphiInfo = record 6 Name: string; 7 RegKey: string; 8 end; 9 10const 11 AllDelphis: array[0..25] of TDelphiInfo = ( 12 (Name: '2'; RegKey: '\SOFTWARE\Borland\Delphi\2.0'), 13 (...
The filter in this example provides additional methods to those inTSteamWrapper. We can also provide filters that override theReadandWritemethods to alter the way that files are written. Demo Code A demo program to accompany this article can be found in thedelphidabbler/article-demosGit repository...
InDelphi(Object Pascal), you can use the record keyword to define a C-like structure. For example, type data = record key: string; value: integer; end; It is interesting to know that you can use theobjectkeyword to do the same thing, like this: ...
The actual call to a procedure is nothing more than: DllMessage; The entire code for a Delphi form (name:Form1), with a TButton (namedButton1) that calls the DLLMessage function, looks something like this: unitUnit1; interface uses ...
Download free sample Excel add-in in Delphi with complete source code Add-in Express Toys toolbar Add-in Express Toys adds to MS Excel a new toolbar with several buttons: The buttons are: Shows Add-in Express Toys About window. Enables/disables "wrap text" for the selected Excel cells. ...
How to raise exceptions in Delphi usesSysUtils;procedureRaiseMyException;beginraiseException.Create('Hallo World!');end;
The actual call to a procedure is nothing more than: DllMessage; The entire code for a Delphi form (name:Form1), with a TButton (namedButton1) that calls the DLLMessage function, looks something like this: unitUnit1; interface uses ...