1. Technology

2009. Delphi Programming by Zarko Gajic

Delphi Programming Almanac For the Year 2009


Delphi Challenge: Create a Custom Function: Remove Empty Folders - May 26, 2009
RemoveEmptyFolders takes 1 path name (directory) and should remove (delete) all empty folders / sub-folders (any sub level) under the provided "rootFolder".

Print Documents From Delphi - Print PDF, DOC, XLS, HTML, RTF, DOCX, ... - May 25, 2009
If your Delphi application needs to operate on various types of files, one of the tasks you might have for your application is to allow the user of the application to print a file, whatever the file type is.

Delphi's MessageDlg - What if Closed Using the [X] Button in the Title Bar? - May 19, 2009
Here's another question: how many users (in percentage) close a dialog form by simply clicking on the [x] button in the title? I think too many. Either they do not understand what the dialog is asking or they are afraid to click any of the buttons.

.Get Selected Tabs of a MultiSelect TTabControl Delphi Control - May 18, 2009
Delphi's TTabControl (Win32 pallete) can be used to add a control with multiple tab settings to a form. The Multiselect property of the TTabControl specifies whether multiple tabs can be selected at the same time. Here's how to get the list of indexes or strings one can use to determine what tabs are selected when multiselect for TtabControl is set to true.

Pimp My Delphi Code - Your Delphi Programming Challenges - May 12, 2009
Let others help you: ask Delphi developers to refactor your code or ask for something you do not know how to implement.

Delphi Programming Challenge: ExtractBasePath - May 6, 2009
Your first challenge is to code a custom Delphi function with the following signature: function ExtractBasePath(const path1, path2 : string) : string; ExtractBasePath takes 2 path names (directory or file) and should return the base / common path for the paths provided.

Optimize Your Delphi Programs Memory Usage - Call SetProcessWorkingSetSize from Delphi - May 5, 2009
When writing long running applications - the kind of programs that will spend most of the day minimized to the task bar or system tray, it can become important not to let the program 'run away' with memory usage. Windows has a rather inefficient way of allocating memory to its processes. It allocates memory in significantly large blocks. Once Windows has allocated a block of memory to a process, and that process frees up 99.9% of the memory, Windows will still perceive the whole block to be in use...

How do You Search For Delphi Programming Related Content? What do You Search For? Can you Find What You are Looking For? - May 4, 2009
Some 20+ years ago when I started with programming (Atari 1040 STE) there was no Internet! Can you picture that era? No Internet! If you wanted to learn how to create Windows programs you either had to read magazines and books or you had to self-study. In my case that was 80% self-study, 20% magazines / books (it was hard to grab a book on programming these days).

StegaImage - Entry #48 - April 28, 2009
In computer terms, steganography is the "art" of hiding a message within a larger one in such a way that others cannot discern the presence or contents of the hidden message.

Automate the Process of Creating Manifest Files for Vista UAC if Not Running Under Administrative Rights for your Delphi Applications - April 27, 2009
From a developer perspective Windows Vista's UAC can be problematic for some parts of your Delphi application, if the application is not being run by an administartor. One such operation is writing to the Registry database.

  1. About.com
  2. Technology
  3. Delphi
  4. Coding Delphi Applications
  5. Delphi Almanac 2009 - Tutorials, Articles, Tips and Tricks by Zarko Gajic - Year 2009

©2014 About.com. All rights reserved.