Delphi Function Snippets


12 April, 2012   

Delphi code example - force the input in a TEdit

Delphi snippet details dynamically calling windows apis with encryption.

25 January, 2014   

To detect if Aero Glass is enabled we must use the DwmIsCompositionEnabled function.

If you want to react on user maximizing or minimizing a Delphi form, use the code.

13 February, 2014   

Just got inspired last night and decided to start a class to get the screen in "blocks" and check which one has changed to update only those.

Delphi code to check you are connected to the Internet

Note that you must include the unit ExtActns in the uses clause.

13 March, 2014   

Delphi code example for [UNIT] ROT1 Encrypt Strings

Delphi code to display the screen size and the list of fonts

28 March, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

24 August, 2011   

When you are writing dynamic link libraries and need to control the loading and unloading of a DLL, or if you want to initialize your DLL when it is loaded, you can have a function called DllMain do your initialization. Windows calls the DllMain function of a DLL in four instances: 1) When a process attaches the DLL 2) When a thread attaches...

Delphi example code for Google Spreadsheet GEO code address

Delphi code example - how to Cut, Copy and Paste text from the control which has the focus.

12 September, 2012   

Delphi code example to draw rotated text

28 December, 2011   

Delphi Code Example for Print Screen using Quick Reports

02 April, 2012   

This Delphi code shows how to draw rotated text

Delphi code example for Hide minimized MDI child windows

How to create a splash screen for slow loading apps. below shown a Delphi code example

08 May, 2012   

To tell if the mouse is over Delphi Form

02 March, 2014   

Delphi code example to get process memory usage