Logic Fundamentals Inc. Software Development for Business
Software Development for Business
Home
What We Can Do
Who We Are
Contact Us
 
Articles
Free Delphi Stuff
RADBooks
Copyright © 2001
Logic Fundamentals, Inc.

   

Free Delphi Stuff!

Feel free to download and use these files...

TStrSet

An extremely simple gadget, it just wraps TStringList into a component that can be dropped on your form at design-time. I frequently find situations where I need to define a list of strings for various purposes, but do not want to hard-code a list box or other visual control because the list may need to be shared in other parts of the application.

DrawGrid Example

A common question is how to control the drawing in the cells of TStringGrids or TDrawGrids. This sample acts as a short tutorial to demonstrate controlling the cell and font attributes, handling the cell state, text justification and multiline text.

TVersionInfo

Starting with Delphi 3.0, Borland made it easier than ever to add version information to your application via a Project Options tab, but still didn't address the problem of getting that information back out for display at runtime. This component surfaces all the standard version values as Properties. To make it even easier, you can hook Label components (in fact, any component with a Caption or Text property) to these properties at design time! The only time you need to write code is for your own non-standard version values (one line each). You can also direct the component, at runtime, to display version information from any other Windows executable.

TShellFileOp

Another frequently asked question is how to copy files, or whole directories, in Delphi, or how to move files to Windows' Recycle Bin. This and much more can be accomplished via other means in Delphi, but why not let Windows do all the work? With this single component, a wrapper around the Windows SHFileOperation API, you can Copy, Rename, Move, Delete, and Recycle any list of files with a single operation. Properties allow control of such options as automatically renaming copied files on collision (e.g. "Copy of SomeDoc.doc"), and displaying the standard Windows animations during the various operations. Windows even takes care of displaying reasonably informative and friendly error messages when it cannot carry out the requested operation, why code it yourself?

Tray Icon Example

A popular request is to be able to have one's program appear as an icon in the "Tray" area of the Windows Task Bar. Windows provides a single API call to handle this, and you must provide a message handler for Windows to call. It's actually not much work, though there are a couple of "gotchas"; the first is to prevent your app from also appearing as a button on the task bar, the other is ensuring your popup menu goes away when it loses focus. Both are handled with one-liners! This sample also shows how to add / change menu items on the fly and handle clicks on them.

ShellExecute Example

A common reuqirement is to be able to execute other programs from within a Delphi application. This sample demonstrates use of ShellExecute and ShellExecuteEx API functions, the latter allows you to execute another process and wait til it completes. You can execute any windows program, and document (automatically executes the associated program) including URLs and EMail.

TGmsStickyLabel

TGMSStickyLabel descends from TLabel and will attach, and align itself(TopLeft, Center, BottomRight) with a specified gap and offset to any TWinControl(TEdit, TDBMemo, TButton etc.). This means it will move in unison when you move the TWinControl. There are other components out there that make a label part of the edit or memo etc. but they tie you too much to that other component.