Posts

Showing posts from November, 2015

Working with Windows Registry in Delphi

Image
How to Read or Write data in Windows Registry by using Delphi ? What is Windows Registry? a small introduction. Registry is a simple hierarchical database that can be used to store Application or User related data in Tree structure. Windows Operating System already uses Registry to store different settings and User related data. It stores data in Root, Key and Value pattern. Root - There are seven predefined root keys, traditionally named according to their constant handles defined in the Win32 API, or by synonymous abbreviations (depending on applications): • HKEY_LOCAL_MACHINE • HKEY_CLASSES_ROOT • HKEY_CURRENT_USER  • HKEY_USERS  Key – Variable name Value – Variable value The Registry "database" is stored as a binary file. To find it, run regedit.exe (Windows registry editor utility) in your Windows directory.  For more about Windows Registry please visit following link… https://support.microsoft.com/en-us/kb/256986 How to access Windo...

Delphi IDE Keyboard Shortcuts for easy use

Delphi IDE frequently used Keyboard Shortcuts Shortcut Description Escape Selects parent control in design mode. Left mouse click + Escape drags the parent control Shift + Click After selecting control in form designer, click on it with Shift again to select top most parent Form Tab On Form Designer activates next component. And on Object Inspector move focus to property value Ctrl + J Invoke code templates also called code snippets Ctrl + T Delete text from cursor position until end of word Ctrl + E Incremental search Ctrl + Y Delete current line Ctrl + Shift + G Insert a new GUID at the cursor position Ctrl + Shift + I Indent the current selected block Ctrl + Shift + U Unindent the current selected block F4 Run program to current cursor p...