DELPHI

Here on my Delphi Pages you can find articels about Palettebar IDE extension. Look at the Tips&Tricks artices for some basic computing tricks or chose some older stuff.

PaletteBar is a alternative component palette for Delphi 6, Delphi 7 and C++Builder 6, featuring fast access to the installed components. It offers many extension the common component palette in the Delphi IDE.

31.01.2007

In Delphi you have many ways to manipulate text files. But all of these have a handicap: You must read the whole file (StringList) or you can only access data sequential (Assign/Readln). But there is an alternative methode to access big files: Memory Mapped Files (MFF).

Each bigger Windows application maintains a "MRU" list (most recently used) or a list of currently opend windows, files etc.. To do this by "hand" seems to be a complicated story. TFlexMenu component enables you to add or remove itmes on a menu dynamicly.

Real windows applications must be able to "remember" it’s settings like window position and size, selections or the input of text fields when it’s started again. For position and size you can find a bunch of components on the internet. For other things you have to do some aweful inifile or registry operations - not much comfort at all.

TFileToolbar enables the common TToolbar97 (separate available from Jordan Russel) to save and restore its buttons and separators to a ini file or the registry. Very useful, if you want the user of your program to customize the toolbars and restore this at startup.

How to copy, move or delete files windows like? The answer is simple: Let the shell do it for you! With the following function it’s an easy job!

Sometimes you need a little bitmanipulation, but you are worried about all those AND, OR, XOR, SHL and SHR? So why don't you give a simple but smart set a chance?

The good old case statement has one big handicap: You can not use it with strings as operators, only integers can be used. With a little tricky procedure, we can use strings as well as integers as operators for a case statement.

IntToStr and StrToInt are nice functions, but if you are dealing with other number systems then binarie, decimal or sedecimal you have to do this by yourself. Here is a solution for this.

You know the problem: A simple type mismatch and the search in the database goes fail, because the search strings did not match … This function compares the single characters, counts the identical characters and calculates a procentual value, how similar the both strings are.

… or where is the substring? The old fashioned Pos function is the most common way for searching in a string. But it always begins on the start of the string and so its a little bit useless to search behind the first position of the string.

Isn’t it boring? All those big programs use sounds in Messageboxes, why not your’s? Take this litte routine to replace the old MessageDlg and listen!