We will use theTTimerto update the status bar with details of the active control every 1/10thof a second. To do this create aOnTimerevent handler for theTTimeras follows: 1procedureTForm1.Timer1Timer(Sender:TObject); 2begin 3ifAssigned(ActiveControl)then 4StatusBar1.SimpleText:='ActiveContr...
Declare a new class as per Listing 2: 1type 2 TNulWBContainer = class(TObject, 3 IUnknown, IOleClientSite, IDocHostUIHandler 4 ) 5 private 6 fHostedBrowser: TWebBrowser; 7 // Registration method 8 procedure SetBrowserOleClientSite(const Site: IOleClientSite); 9 public 10 constructor Create(...
In order to use this DLL, we have to compile it by pressingCtrl+F9. This should create a DLL calledSimpleMessageDLL.DLLin your projects folder. Finally, let's take a look at how to call the DllMessage procedure from a statically loaded DLL. To import a procedure contained in a DLL, ...
In order to use this DLL, we have to compile it by pressingCtrl+F9. This should create a DLL calledSimpleMessageDLL.DLLin your projects folder. Finally, let's take a look at how to call the DllMessage procedure from a statically loaded DLL. To import a procedure contained in a DLL, ...
Earlier we have learnedhow to create a Python Type using Python4Delphi componentsin a Delphi GUI app. From the post we know, how to create and use Python4Delphi components such as TPythonEngine, TPythonModule, TPythonType by a simple drag and drop in our application. But ...
how to create a stand alone exe file in c# How to hide the window of a new process how to open port with c# How to set the Default Value of Datagridview combobox Column based on the Value Member? how a parent class's method can call a child class object ? How accurate is the Sy...
Intro to subroutines Subroutines are an important part of anyprogramming language, and Delphiis no exception. In Delphi, there are generally two types of subroutines: a function and a procedure. The usual difference between a function and a procedure is that a function can return a value...
Start Delphi, and select New->Other from the File menu. In the New Items dialog select Package from the New tab and press ok. This will create new Delphi package project. Press CTRL-S and save the new project to your liking. Now press the Add button to create a new component. Fill ...
How to create a buffer (byte array) in Win32 C++? How to create a child window? How to create a global object of a ref class type? How to create a log file to write logs and timestamp using C++ How to create the manifest file and embed in application to detect Windows 10 &...
Now I want to add an Undo, where if the user makes a mistake, the last addition is removed. He can't e.g. remove Folder A in the above example, as it is paired with File A and other pairs have already been added. So all I need to do is create an Undo for the last addition...