1. Home
  2. Computing & Technology
  3. Delphi Programming
Zarko Gajic
Zarko's Delphi Programming Blog

By Zarko Gajic, About.com Guide to Delphi Programming

Rearrange Multiple TListView Items using Drag and Drop in Delphi apps

Friday December 11, 2009

in Delphi VCL ::
Using Delphi's drag and drop operations it is easy to implement rearranging multiple items in a TListView control.

Most MP3 (any multimedia) players allow arranging playlist using the technique provided in this article.

Read the full article to learn how to Rearrange Multiple TListView Items using Drag and Drop

Related:

Programmatically Detect the MyDocuments Folder for the Current Windows User from Delphi

Thursday December 10, 2009

in Delphi TIPS :: The "MyDocuments" folder in Windows should be used to store user created documents such as text documents or presentations.

If your Delphi program creates application specific documents you want to be stored in the "MyDocuments" folder for the currently logged Windows user, you need to programmatically determine the path to the "MyDocuments" folder.

Read the full article to learn how to Programmatically Detect the MyDocuments Folder for the Current Windows User.

Related:

Preserve Code Folding When Reopening a Delphi Project

Tuesday December 8, 2009
in Delphi IDE :: Introduced in Delphi 8, code folding is a feature of the Delphi IDE which lets you collapse (hide) and expand (show) your code to make it easier to navigate and read. By default, when you close and reopen your project the code that you collapsed would appear expanded - your code folding preferences are not saved. Here's how to "fix" this.

Read the full article to learn how to Preserve Code Folding When Reopening a Delphi Project

Related:

Incremental Search for the TListBox Delphi Control

Monday December 7, 2009

in Delphi VCL ::
Imagine a list box with a huge number of (unsorted) items. Finding the one user wants to select might turn into a nightmare. Let's provide the user with an option to immediately locate the item in the list box by adding incremental search functionality.

Read the full article to learn how to Implement Incremental Search for the TListBox Delphi Control

Related:

Delphi Popup Menu With Different Item Heights (and Custom Graphics)

Friday December 4, 2009

in Delphi TIPS ::
If you need to have different heights for some of the menu items, in Delphi applications, you must turn to owner drawing. Here's how to draw a custom sized image for a popup menu item.

Read the full article to learn how to create a Popup Menu With Different Item Heights (and Custom Graphics)

Related:

Display a Password Dialog when Restoring a Delphi Application from the TaskBar

Thursday December 3, 2009

Advanced Delphi:: Suppose you have a data-critical type of application where you would not want a non-authored user to work with the data. What if you need to display a password dialog *before* the application is restored to make sure an authorized user is accessing it? Here's how to do it in Delphi.

Read the full article to learn how to Display a Password Dialog when Restoring a Delphi Application from the TaskBar

Related:

Rename a Directory / Folder Using Delphi Code

Tuesday December 1, 2009
in Delphi Directory Routines ::The RTL's RenameFile changes the name of a specified file. The implementation of the RenameFile function calls the MoveFile API function. MoveFile can rename folders, therefore Delphi's RenameFile can also rename folders and not only files. What's more RenameFile CAN move folders, also!

Read the full article to learn how to Use RenameFile to Rename a Directory

Related:

How to Hide / Show the Main Menu of a Delphi Application

Monday November 30, 2009

in Delphi TIPS :: The TMainMenu Delphi component does not expose the Visible property to let you show or hide the menu for a form programmatically, does it? It does not, but there is a way to hide the main menu for a Delphi form at run time. Here's how...

Read the full article to learn how to How to Hide / Show the Main Menu of a Delphi Application

Related:

Display a LogIn Dialog Before the Main Form of a Delphi Application is Created

Friday November 27, 2009

in Advanced Delphi ::
If you need to implement some kind of authorization for your Delphi application you might want to display a login / password dialog *before* the main form is created and displayed to the user. In short, the idea would be to create, display, and destroy the "login" dialog before creating the main form.

Read the full article to learn how to Display a LogIn Dialog Before the Main Form of a Delphi Application is Created

Related:

How to Implement the OnCreate event for a Delphi TFrame object

Thursday November 26, 2009

in Delphi TIPS ::
A frame, like a form, is a container for other components. Frames can be nested within forms or other frames, and they can be saved on the Component palette for easy reuse.

Once you start using frames, you'll note there's no OnCreate event you can use to initialize your frames.

Read the full article to learn How to Implement the OnCreate event for a Delphi TFrame object

Related:

Read Archives
Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.