1. Computing

2008. Delphi Programming by Zarko Gajic

Delphi Programming Almanac For the Year 2008


Take a Screen Shot of an Inactive Window - Using PrintWindow API from Delphi - April 28, 2008
Taking a screen shot of a window using Delphi code is rather easy. A screen shot (screen capture) is a copy of the screen's contents that can be saved as a graphics file or displayed in a graphics "aware" control, for example TImage. In most cases you will want to take a screen shot of the active window or the Windows Desktop. What if you need to do a screen capture of all the running applications - most of them will be inactive and not visible to the user?

Windows Shut Down / Restart / Log Off - FDA(C) Entry #26 - April 22, 2008
Do you need to restart, log off or even shut down Windows frequently? How about 3 simple shortcuts to automate the proces?

Use Custom Check Box Images for a ListView - Delphi 's TListView Checkboxes are Ugly - April 21, 2008
When the ViewStyle property of a TListView Delphi control is set to vsReport and CheckBoxes is set to true, list view includes a check box next to the items in the list. By design this check box is, well, "ugly". It has a nasty thick 2 pixel border - and there's no property to change it.

1337 Elite Slang Converter - FDA(C) Entry #25
Elite or leet or 1337 is a geek talk - online slang. 1337 is geek's for "leet," which is an abbreviation of "elite." This term was derived from 31337 "eleet".

Task Manager Clone - FDA(C) Entry #24
Task Manager Clone displays information about the performance of your computer and the programs and processes that are running on your computer. Use it to view process ID, view memory information or end a process.

No Main Form Delphi Application - April 7, 2008
What if you need to create an application where every form is equally important (for example like IE) - where closing the main form will *not* close the application?

Reversi (Othello) - FDA(C) Entry #23
Reversi (Othello) is the a strategy board game which involves play by two parties on an eight-by-eight square grid with pieces that have two distinct sides.

Append Formatted Lines to Rich Edit using Delphi's SelText and SelStart
While you can create nice user interface "around" the rich edit control with toolbar buttons to set and change text display attributes, adding formatted lines to rich edit programmaticaly is fairly cumbersome - as you will see.

Coins (Connect 4) - FDA(C) Entry #22
Coins (Connect 4) is a two-player game (or play agains the computer) in which the objective is to be the first to get four of one's own discs in a line. Try to be the first with four in a row!

Custom Drawing of TListView Items - Font, Colors, Graphics - March 24, 2008
If you want to apply custom drawing (fonts, color, graphics) for each individual list item you can simply handle an event or two - and have a list view full of color and visually more attractive elements. The OnAdvancedCustomDrawItem event can be used to customize the drawing of individual items on the list view's canvas. The list view receives this event even if the OwnerDraw property is false.

File Sharer - FDA(C) Entry #21
Need a simple way to share your files over the Internet? Want to allow your friends to send you large files: photos, movies? Your e-mail provider has a quota on your mailbox?

Opening Office Documents (Word, Excel) in TWebBrowser on Vista and Office 2007 - March 17, 2008
When, in your Delphi application, you are using the TWebBrowser control to open Word (Excel) document for preview and/or print- if your application is running on Vista with Office 2007 installed you might experience weird behaviors. Documents open in a new Word instance rather than in the web browser window. Here's a quick fix.

Have More than 1 Hint/Tooltip Line for a Delphi Control - March 10, 2008
The "Hint" property every Delphi control exposes is used to specify the text that appears to the user when the user moves the mouse over the control and pauses momentarily.

Boggle Generator - FDA(C) Entry #19 - March 4, 2008
Boggle game is played using a grid of lettered dice, in which players attempt to find words in sequences of adjacent letters.

How to Help Novice Delphi Developers - Loud Thinking - February 27, 2008
Tutorials for true beginners who want to learn how to create Windows application and their choice is Delphi ... something like that really does not exist in a way that it is easily available from CodeGear (Delphi) web site.

A Guide to Using dbExpress in Delphi database applications - February 25, 2008
One of data connectivity options in Delphi is dbExpress. This articles provides an overview of dbExpress along with a collection of tutorials and articles on building database applications using this light-weight, cross-platform data access technology.

Sudoku Solver - FDA(C) Entry #18 - February 26, 2008
If you need help solving your next Sudoku puzzle - why not look for a computer generated solution - the one written using Delphi!

Gee Player - MP3 Music Player - FDA(C) Entry #17 - February 19, 2008
Looking for another MP3 player? Maybe the one developed in Delphi you can extend with your own ideas? Look no more - Gee Player is a full featured music player and recorder.

Help! Lost USB Toolkit - FDA(C) Entry #16 - February 18, 2008
An idea: create a simple application located on your USB, make it run as a default option when the stick is inserted. If the stick is found the application displays a message containing your address and a "please send me my stick" message.

Connect 4 - FDA(C) Entry #15 - February 16, 2008
Connect Four is a two-player game in which the objective is to be the first to get four of one's own discs in a line. Try to be the first with four in a row! Just move your mouse arrow over the gameboard and move the arrow over the column you want to place your first piece. Then click to drop it. Keep taking turns until one of you gets for circles connected in any direction.

©2014 About.com. All rights reserved.