2007. Delphi Programming by Zarko Gajic

106 245
< Continued from page 1

Directory Helper Routines - Directory Related Delphi Functions and Procedures - September 25, 2007
When developing applications that need to operate on files and directories it is a common task to, for example, get the list of all sub-directories...

Get Parent Folder / Directory - September 24, 2007
Delphi's RTL library exposes dozens of file name related functions and procedures. You might be surprised that one function is "missing": how to get the parent...


Store User and Application Data in the Correct Location - September 18, 2007
When in the need of storing some content related to your Delphi application on the user's hard disk, you should take care of the support for ...

Get Windows Running Time - September 17, 2007
If you need to display how many days (minutes, seconds) have passed since Windows have been started, you need to convert miliseconds (returned by the GetTickCount ...

Is the Current Windows user a Computer Administrator (programmatically check from Delphi)? - September 10, 2007
In Windows there are two main types of user acount types: "Computer Administrator" and "Limited". If you need to check, from your Delphi application, if the ...

Highlighting Delphi's DBGrid Row On Mouse Hover - September 4, 2007
What most Delphi developers are not aware of, is that you can even implement the OnMouseHover behavior to change the display (color, font, etc.) of...

Array as a Function Return Type and Method Parameter - September 3, 2007
When you declare functions that will return array value, you cannot include index type specifiers return declaration.

If you try so, you'll receive :" [Pascal Error...

Minimize Child Forms Independent of the Main Form - August 28, 2007
By design, Delphi applications only have one button on the Windows Task Bar for the whole application. When you, for example, minimize the main form...

Drop Multiple Instances of a Component on a Delphi Form - August 27, 2007
When designing your application interface, you generally add several components from the Component/Tool Palette on a form and set their properties. In complex designs, where you need to ...

TAdoConnectionEx - Custom Delphi Component With Source - August 21, 2007
Enhanced ADO connection component that prevents design-time database connections from being used at run-time unless explcitily allowed via the AllowStreamConnected property. Full Delphi source code included.

How to Select a Control Parent in the Delphi Form Designer - August 20, 2007
When designing forms (frames) for your Delphi application, you often use container type controls such as a TPanel or TGroupBox to hold other controls. In complex ...

Minesweeper Game - Delphi Version with Source Code - August 14, 2007
Minesweeper is a single-player computer game. The object of the game is to clear a minefield without detonating a mine. The most well-known version comes bundled ...

Remove MDI Child Form's Title Bar - August 13, 2007
If you need to hide the title bar of a Multiple Document Interface child form, you might be tempted to set the BorderStyle to bsNone ...

An Error at Run-Time due to the Database Connection Left Open at Design-Time -
No matter how much I (guess this refers to all of you) try not to leave the Connected property to true before building for the ...

Adding Custom Properties to Delphi Forms; Overriding the Create Constructor - August 6, 2007
If you need to add a custom property to a form and have it initialized *before* the OnCreate event, you will need to override the form's ...

Display Custom TTreeView Item Hints - July 31, 2007
The TTreeView Delphi control wraps the Windows tree view control. TTreeView is comonly used when a hierarhical structure needs to be displayed to the user. To display...

Disable Automatic Hint Feature for the TTreeView - July 30, 2007
By Windows design, when you hover your mouse over an item, a hint (tooltip) window appears containing the title of the item under the mouse cursor...

An Easy Way to Programmatically Generate Strong Passwords -
One method of generating a long password, without storing it anywhere is to select a file (either binary or text), do a little bit o...

How to Debug Delphi VCL Source Code (Set a Breakpoint in the VCL) - July 23, 2007
One way to locating errors while designing your code is to use the integrated debuger. If you set a breakpoint on a line in your ...

ASuite - A simple application launcher for you - July 17, 2007
ASuite is an application launcher to manage an unlimited number of files, folders and webpage for quick access. It is designed to work with...

Parsing Command Line Parameters with Delphi - July 16, 2007
Delphi's ParamStr and ParamCount functions are designed to help operate the parameters (command-line arguments) passed to the application. Due to the way ParamStr function is...

Disabling Container Child Controls when the Enabled property changes - July 10, 2007
When an edit box or a label is placed on a panel, in a Delphi application, if the Enabled property for the panel is set ...

How to Display the & (Ampersand) Character on Labels and Buttons - July 9, 2007
By Windows design, accelerator keys enable the user to access a menu command from the keyboard by pressing Alt along the appropriate letter, indicated in your...

Implement a Button with a Drop Down Menu in Delphi - July 3, 2007
A "Button with a Drop Down Context Menu" appears as a normal button with an additional down arrow on the right side of the button...

Delphi's NIL value and the Assigned RTL Function - July 2, 2007
In Delphi, the NIL constant (also a reserved word) is a pointer value defined as "not-assigned" or "pointer to nothing" or "undetermined". Understand NIL before you...

Convert a Virtual Key Code to a Character - June 26, 2007
Windows defines special constants for each key the user can press. The virtual-key codes identify various virtual keys. These constants can then be used to refer ...

How to Convert an amount of Milliseconds to a TDateTime Value - June 25, 2007
When doing lengthy operations in your Delphi applications, you might want to display the time passed to the user. If GetTickCount is used to measure the...
Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.