Showing posts with label Delphi. Show all posts
Showing posts with label Delphi. Show all posts

TitleBar - Delphi component which adds many features: AutoHide, SetRegion, border width for form, color for everything, good looking borders, ShowInTaskbar, etc.

TitleBar - Delphi component which adds many features
This is a curiosity component demonstrates, what can be made of Delphi forms and control elements.
This is another note for Delphi code modernization trend
Changes in TTitleBar by Valient Newman in an attempt to revive an old project and to make the component meet the requirements of Delphi 6 and higher.
Corrections were tested in Delphi 2007, 2009 environment. Date last modified by Newman: January 30, 2025
Checked in in Delphi 2007, 2009
Updated January 30, 2025

TTitleBar v2.01

TitleBar - Delphi component which adds many features: AutoHide, SetRegion, border width for form, color for everything, good looking borders, ShowInTaskbar, etc.

The components TTitleBar v2.01 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments. Source code is provided free of charge. The software is provided to you “AS-IS”. As such, there is no guarantee of any support whatsoever.


credits to:
Seth Taylor made this component on February 8, 1999 on Delphi 3

Once upon a time there were Delphi Haters and their list of vendors who stopped supporting Delphi

Cemetery of Delphi Vendors who stopped supporting
I found Delphi Haters' Blog. Vendors who stopped supporting Delphi with date: Saturday, July 24, 2010
The fact is that Delphi/Object Pascal is in 8th position on tiobe.com TOP10 list of programming languages for November 2025 and the fact is encouraging.
There is fresh, the almost exact copy of origin list of vendors who stopped supporting Delphi I made a copy of these lists for myself and deleted the duplicates in them.
As for me, this is not a Delphi Vendors Cemetery, but an expanded window of opportunity and an experience that can be borrowed.

I look for information about them in search engines.

Vendors who went out of business

  • athrasoft.com – Vendor of Athrasoft Plugins
  • cgiexpert.com – Vendor of CGIExpert
  • odbc98.com – Vendor of ODBC98 – reason cited as poor or non-existent sales
  • classicsw.com – Vendor of Classic Component
  • PIMFlashfesoft.com – Vendor of PIMFlash
  • turbopower.com – Vendor of TurboPower Components
  • maxcomponents.net – Vendor of Max Help and Max Components
  • buypin.com – Vendor of B.S. components
  • vistadb.com – Vendor of Apollo database
  • asp-express.com – Vendor of classic ASP components
  • classicworks.com.au – Vendor of Classworks Development VCL
  • defined.net – Vendor of Defined Forms
  • dream-com.com – Vendor of Dream Company
  • crynesoft.com – Vendor of Genesis Component Pack
  • teletech-systems.com – HelpWriter application
  • volgadb.com – Vendor of Volga Database
  • DFS (Delphi Free Stuff)
  • animatedmenus.com – Vendor of Animated Menus – cited Poor sales
  • acctsync.com – Vendor of QuickBooks Components
  • DuckReports – Vendor of Duck Reporting Components
  • BalticSolutions – Vendor of ColorMemo
  • Helping Hands Software – n/a
  • UDC Corp – Vendor of MemoWriter, PowerSpreadsheet
  • IBrightSolutions – Vendor of Simulation Software
  • Unley Software – KeyDB
  • DictaSoft.com, Layout Components
  • CrystalVCL.net, Crystal VCL and other components
  • Cando Framework
  • RHITech.com, Excel Add-in component
  • DScriptVCL.com, Delphi Scripting VCL components
  • CSS-Software.com, CSS Component Suite
  • JB Components/ JB Component Suite
  • CytonResearch.com, VCL Component Packs
  • Codecellerate.com, Drawing Engine,
  • EZCad Soft, EZSoft Engineering
  • ValdSoft, VSLib component package
  • AriseSoft, AriseSoft Shell Component Pack (and others)
  • CoolPaint.com, HTML tokenizer, HTML mini-viewer, Cool Chart
  • ksv.hypermart.net, Handmade VCL Components
  • alphadomino.ru, Gantt Chart components
  • ta4delphi.com, Technical Analysis Charting components
  • praktical.com, Praktical Organic button components
  • maverick.co.uk, Aqua Mac-looking components
  • FlatStyle.de, Flat Style Components
  • SlickTools.com, InfoMatters office components
  • MediaPilot.com, Installation components
  • Intag.de, DxComponent Collection

Vendors who stopped supporting Delphi

  • Softel VDM – Vendor of SftTree, SftBox, SftButton – reason cited as “massive software piracy”
  • AHM Tritron Tools – Vendor of AHM Components
  • adrock.com – Adrock Calendar Components (GPL)
  • tekhnologos.com – Their VCL library is no longer for licensing
  • SweetControls.com – Sweet Controls
  • degisy.com – Degisy Controls

Vendors who stopped supporting one of their Delphi components/ or all of their products

  • MicroOlap.com, Packet Sniffer for Delphi, end of life
  • SciBit.com MySQL Components, end of life
  • KsDev.com, Block Engine, Office VCL (disappeared from their site)
  • lphaAsp.com Alpha Corporation, Alpha Units, Alpha Interceptor (disappeared from their site)
  • Djordje Peric, PDJ Packs (their website is no longer available)
  • CodeBot.com, CodeBot library (no longer available for download)
  • SuiPack.com, KeyDB (formerly from SUIPack)
  • Syntetix.com, Theme Control
  • CoolDev.com (All their Delphi products are now freeware)
  • 9spice.net RapidSolutions, RapidTree, 9Rays Treeview
  • Willmark.ru, WillMark Tree Wizard
  • GeoCities/Stephan Marais – Open Sybase CT-Library Library
  • TekhneLogos.com, PowerCad, supposedly given a non-existent 10% discount on Torry’s
  • Baltsoft.com, ProjectPlus components
  • Tops.com.pl, SMSC Delphi components (cited as “no demand” or “very low response”)
  • Timelesstech.com, all their Delphi components (Lock & Key, Fax components)

DFS EllipsisPanel is Delphi component that can shorten the caption text, replacing it with '...'

TdfsEllipsis Panel Demo
Delphi code modernization trend
Changes in TdfsEllipsisPanel have been made by Valient Newman to make the component meet the requirements of Delphi 2, 2009 and higher.
Checked in 2009
Updated 22 dec 2025

TdfsEllipsisPanel v1.20

DFS EllipsisPanel is Delphi component that can shorten the caption text, replacing it with '...' when it does not fit the available space. Also a generic function that "ellipsifies" a string is provided.

The components TdfsEllipsisPanel v1.20 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments. All DFS source code is provided free of charge. The software is provided to you "AS-IS". As such, there is no guarantee of any support whatsoever. The component throws an Access violation error and its source code can be used as an example for study.



credits to:
Bradley D. Stowers The author of All Delphi Free Stuff (“DFS”)
Copyright 1996, Brad Stowers. All Rights Reserved.

DFS GrabBar - Delphi component, grab bar, or splitter, to allow two windows to be resized simultaneously

TdfsGrabBar Demo
Delphi code modernization trend
Changes in TdfsGrabBar have been made by Valient Newman to make the component meet the requirements of Delphi 2, 2009 and higher.
Checked in 2009
Updated 22 dec 2025

TdfsGrabBar v1.17

DFS GrabBar is a bar that allows two TWinControl components to be resized by dragging it.

The components TdfsGrabBar v1.17 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments. All DFS source code is provided free of charge. The software is provided to you "AS-IS". As such, there is no guarantee of any support whatsoever.



credits to:
Bradley D. Stowers The author of All Delphi Free Stuff (“DFS”)
Copyright 1996, Brad Stowers. All Rights Reserved.

DFS MRUFileList - Delphi component to simplify adding MRU file lists to menus

TMRUFList Demo with RadStudio Delphi 2009 Closed Files list
Delphi code modernization trend
Changes in TdfsMRUFileList have been made by Valient Newman to make the component meet the requirements of Delphi 2, 2009 and higher.
Checked in Delphi 2007, 2009
Updated 21 dec 2025

TdfsMRUFileList v2.68

DFS MRUFileList - Delphi component that greatly simplifies adding MRU file lists to menus.
TMRUFList Demo was made with RadStudio Delphi 2009 Closed Files list in mdFileNameOnly.

The components TdfsMRUFileList v2.68 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments. All DFS source code is provided free of charge. The software is provided to you "AS-IS", and all risks and losses associated with it's use are assumed by you. As such, there is no guarantee of any support whatsoever.



credits to:
Bradley D. Stowers The author of All Delphi Free Stuff (“DFS”)
Copyright 1996, Brad Stowers. All Rights Reserved.

MiTeC File Explorer is Windows Explorer-like component

TMFileExplorer Demo
Delphi code modernization trend
Changes in TMFileExplorer have been made by Valient Newman to make the component meet the requirements of Delphi 6 and higher.
Checked in Delphi 7 and Delphi 2007, 2009
Updated 20 dec 2025

TMFileExplorer v1.15

MiTeC File Explorer is Windows Explorer-like component.

The components TMFileExplorer v1.15 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments. All source code is provided free of charge. As such, there is no guarantee of any support whatsoever.



credits to:
Michal Mutl his GitHub
Copyright © 1999, 2003.

DFS Icon Controls: Icon ComboBox and Icon ListBox caching components for Delphi

TdfsIconComboBox Demo with Delphi 2009 icons
Delphi code modernization
Changes in TdfsIconComboBox and TdfsIconListBox have been made by Valient Newman to make the component meet the requirements of Delphi 2, 2009 and higher.
Checked in Delphi 7 and Delphi 2007, 2009
Updated 18 dec 2025

TdfsIconComboBox and TdfsIconListBox v1.17

The caching Icon ComboBox and Icon ListBox components for Delphi.

A dropdown list style combobox that displays the icons that exist in a given file, and a listbox that displays the icons that exist in a given file, either horizontally or vertically.

TdfsIconListBox Demo with Delphi 2009 icons

Features: Optionally, the control can disable itself when the filename is invalid. Optionally, the control can load icons "on demand." This speeds up the initialization process greatly because all icons do not have to be loaded when the control is created. Many file formats can be read from, including: .EXE, .DLL, .ICO .ICL { PCTools? Icon Library .NIL { Norton Icon Library ListBox can simulate a grid of icons, allowing you to set the number of icons to be displayed in both the X and Y direction. This setting can be changed dynamically.

The components TdfsIconComboBox and TdfsIconListBox v1.17 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments. All DFS source code is provided free of charge. As such, there is no guarantee of any support whatsoever.



credits to:
Bradley D. Stowers The author of All Delphi Free Stuff (“DFS”) Copyright 1996, Brad Stowers. All Rights Reserved.

FWTrayIcon - component for registering class to work with the system tray

FWTrayIcon - component for registering class to work with the system tray demo
Delphi code modernization
Changes in TFWTrayIcon by Valient Newman to make the component meet the requirements of Delphi 2009 and higher.
Checked in Delphi 7 and Delphi 2007, 2009
Updated 18 dec 2025

TFWTrayIcon v1.05

Сomponent for registering class to work with the system tray.

The component TFWTrayIcont v1.05 is available in My Github Repository

The component has realization issues for instance with hint display and the use of this component is on your own risk.

The software is provided as is without any garanties and warranty.
This component can be freely used and distributed in commercial and private environments.



credits to:
Fangorn Wizards Lab Exstension Library
Alexander (Rouse_) Bagel, his GitHub
© Fangorn Wizards Lab 1998 - 2005.

FWHint - component to register class to work with application hints

FWHint - component demo
Delphi code modernization
Changes in TFWHint by Valient Newman to make the component meet the requirements of Delphi 2009 and higher.
Checked in Delphi 7 and Delphi 2007, 2009
Updated 17 dec 2025

TFWHint v1.05

Сomponent for registering class to work with application hints.

The component TFWHint v1.05 is available in My Github Repository

This component can be freely used and distributed in commercial and private environments.



credits to:
Fangorn Wizards Lab Exstension Library
Alexander (Rouse_) Bagel, his GitHub
© Fangorn Wizards Lab 1998 - 2005.

DlgTest is design-time testing of TCommonDialog component descendants

CodeGear Delphi 2007
Delphi legacy code modernization
Corrections brought in DlgTest by Valient Newman to make the component meet the requirements of Delphi 6, when the design-time and runtime code must be separated.
Checked in Delphi 7 and Delphi 2007, 2009
Updated 17 dec 2025
The component DlgTest is available in My Github Repository This component can be freely used and distributed in commercial and private environments.

DlgTest v1.05

Design-time testing of TCommonDialog component descendants.
credits to :
Bradley D. Stowers The author of All Delphi Free Stuff ("DFS")
Copyright 1996, Brad Stowers. All Rights Reserved.

DFS Color Button

Delphi legacy code modernization
Corrections brought in CBtnForm, ColorAEd, DFSClrBn by Valient Newman to make the component meet the requirements of Delphi 2, 2009 and higher, where WinTypes, WinProcs units are absent.
Checked in Delphi 7 and Delphi 2007, 2009
Updated 15 dec 2025

TdfsColorButton v2.62

A Windows 95 and NT 4 style color selection button, which displays a palette of 20 color for fast selection and a button to bring up the color dialog.

This component can be freely used and distributed in commercial and private environments.

The component DFS Color Button is available in My Github Repository



credits to :
Bradley D. Stowers The author of All Delphi Free Stuff ("DFS")
Copyright 1996, Brad Stowers. All Rights Reserved.

If WinTypes and WinProcs units are absent in Delphi

Alias to the project: WinProcs=Windows WinTypes=Windows
WinTypes and WinProcs units are absent in Delphi 2 and higher.

WinTypes.pas and WinProcs.pas are units from Windows 3.1x., they come from Turbo Pascal and Delphi 1.
In Win9x and later they were replaced with Windows.pas.


First solution to add an alias to the project: WinProcs=Windows, and WinTypes=Windows.
Delphi admits some aliases. For example, aliases for backwards compatibility from WinProcs and WinTypes to Windows.
The full string with conditional compilation directives may be sush as WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;

Second solution is to use in code conditional compilation directives for various Delphi versions.

{$IF CompilerVersion >= 9.0} // Delphi 2 and higher Windows, {$ELSE} WinTypes, WinProcs, {$IFEND}
Remaking old components for Delphi
Переделывая старые компоненты для Delphi

Delphi 2007 and Delphi 2009+ difference in string types. Migration

CodeGear Delphi 2007

This is not a divine revelation, but simply semblance of my personal reference.

In Delphi 2007AnsiString was the default string type used for general-purpose string manipulation.
This means variables declared simply as string were compiled as AnsiString. This changed in Delphi 2009+, where string became an alias for UnicodeString.

AnsiString in Delphi 2007:
  • In Delphi 2007 Char was an 8-bit (1-byte) AnsiChar, while in Delphi 2009+, it became a 16-bit WideChar (UTF-16) by default.
  • Encoding: The interpretation of these bytes depends on the operating system's current active code page (e.g., Windows-1252, or specific locales like code page 936 for simplified Chinese).
  • Length: AnsiString was dynamically allocated and limited only by available memory, unlike the older ShortString that was limited to 255 characters.
The primary distinction in Delphi 2009 and later is the shift to Unicode.
  • Char now represents a 16-bit character, enabling full Unicode support. Char becomes WideChar
  • string is an alias for UnicodeString (UTF-16, 2 bytes per character).
  • AnsiString still exists but is used primarily for backward compatibility or interfacing with non-Unicode systems/APIs.
When moving from Delphi 2007 to Delphi 2009 (or later):
  • AnsiString to UnicodeString: String changes, leading to potential data loss if ANSI data is assigned directly to Unicode strings.
  • Explicit Casts: Use PAnsiChar(myWideString), AnsiString(myUnicodeString) and similar, where needed, and be aware of character mapping.
  • Migration Required: Code using Char, PChar needed updates, especially with assignments between ANSI and Unicode types.
  • If a 1-byte buffer is in need, use RawByteString instead of string or Char. RawByteString is AnsiString with no code page set by default (AnsiString($ffff)).
(e.g., #128 isn't the Euro sign in Unicode).
Delphi and Unicode, Marco Cantù, December 2008

Delphi/Object Pascal is in 8th position on tiobe.com TOP10 list of programming languages for November 2025

The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. Popular web sites Google, Amazon, Wikipedia, Bing and more than 20 others are used to calculate the ratings. It is important to note that the TIOBE index is not about the best programming language or the language in which most lines of code have been written. The index can be used to check whether your programming skills are still up to date or to make a strategic decision about what programming language should be adopted when starting to build a new software system.
Delphi/Object Pascal is in the 8th position on the tiobe.com TOP10 list of programming languages for November 2025

TIOBE index

Windows 64bit Delphi 2007/2009 Debugger Fix / Workaround with "Assertion failure" error

«SetThreadContext failed» Delphi 2007/2009 Windows x64
This error is typical not only for 7, but also for subsequent Windows 64-bit. Delphi 2007 and 2009 are susceptible to the "Assertion failure" error.
If one run Delphi 2007 or Delphi 2009 on Windows 64bit and met the Assertion failure when hit F2 or exit out of the program, this strange error dialog occurs: bds.exe - bordbk105N.dll Assertion failure: "(!"SetThreadContext failed")" in ..\win32src\thread32.cpp at line ... Continue execution? If Press No or ESC key will close the whole IDE. Pressing Yes may prompt for the same dialog.

There was an unofficial hotfix at CodeCentral - ID: 27521, RAD Studio 2007 Debugger Fix for Windows 7 that now is unavailable.

Further is a temporary solution for this problem.
Using any hex editor, for example, mh-nexus, an open source version.
1. Close Delphi
2. Make a backup of the library bordbk105N.dll (version should be 105.11.1.12533) for Delphi 2007, bordbk120N.dll (version should be 120.903.17.15115) for Delphi 2009
For Delphi 2007
the location is "%ProgramFiles(x86)%\CodeGear\RAD Studio\5.0\bin\bordbk105N.dll",
for Delphi 2009
the location is "%ProgramFiles(x86)%\CodeGear\RAD Studio\6.0\bin\bordbk120N.dll"
3. Open the library file in hex editor
4. Look for hex string in the file
01 00 48 74 47 80 3d
There is only one(!) HEX 01 00 48 74 47 80 3D
5. Change it to
01 00 48 EB 47 80 3d
74 is replaced with EB
6. Save
7. Restart Delphi and the error message should be gone. That’s all. Now the debugger runs on Windows 64bit.

Or try to find the in the internet the ready-to-use patcher Delphi_2007_2009_WOW64_Debugger_Fix.zip (Delphi_2007_2009_WOW64_Debugger_Fix.exe) who will do the same for you.

CodeGear Delphi 2007
My first note was «SetThreadContext failed» Delphi 2007/2009 Windows x64.
Here I made more detailed explanation.
An put a concise version of the article on Stackoverflow

TBytesStream class for Delphi 2007

CodeGear Delphi 2007
TBytesStream class was added in Delphi 2009, so I define it manually for CodeGear Delphi 2007. type TBytesStream = class(TMemoryStream) private FBytes: TBytes; FCapacity: Longint; FSize: Longint; protected function Realloc(var NewCapacity: Longint): Pointer; override; public constructor Create(const ABytes: TBytes); overload; property Bytes: TBytes read FBytes; end; Full unit published on Github

ZEOS Library 8.0.0 does not support Delphi 2007 and older

ZEOS Library
A file ZBase64.pas appeared in the ZEOS Library 8.0.0 in folder with path "src\core\" that can not be compiled.
The class TBytesStream in ZBase64.pas was added in Delphi 2009.

SqlitePass support for the Rad Studio Delphi 2007

CodeGear Delphi 2007
This my addition gives the support for Rad Studio Delphi 2007 to SqlitePass and quite possible to Delphi 2005, 2006.
The most significant processing has been made to the file SqlitePassDbo.inc
Published on Github

Delphi 2007 - Error creating form: Failed to set data for...

CodeGear Delphi 2007
The error message like this - "Error creating form: Failed to set data for..." appears on IDE CodeGear Delphi 2007 startup.
This situation occurs due to lack of access rights.
A simple and obvious half-measure is to run IDE CodeGear Delphi 2007 with administrator rights.
For example - check "Run this program as an administrator" in the "Compatibility" tab in Properties menu.
Delphi 2007 - Error creating form: Failed to set data for...

Delphi gives when starting "Socket error # 10038 Socket operation on non-socket"

Socket error # 10038 Socket operation on non-socket
"Socket error # 10038 Socket operation on non-socket" is a wide-spread error.
Access violation at address 205B90EA in module 'coreide270.bpl'. Read of address 00000000,
Next messages are "Access violation at address 205B90EA in module 'coreide270.bpl'. Read of address 00000000,", "Access violation at address 5005F8F4 in module 'rt1270.bpl. Read of address 00000000."
This erroneous behavior was noticed in Delphi RAD Studio 10.4 (10.4.1, 10.4.2).
Confirmed to work in Delphi 11.0 as well, with the obvious adjusts for version:
One can try these steps to fix Delphi 10.4:
  1. Shut the Delphi IDE down.
  2. Run Regedit.
  3. Go to the branch HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\21.0\KnownIDE Packages
  4. Find the value with name $(BDS)\Bin\LivePreview270.bpl and change the data from "Embarcadero FireUI Live Preview Package" to "_Embarcadero FireUI Live Preview Package" just adding one or two underscores in the beginning. Other symbols, for instance, I tried to put "#" will not fit, the erroneous behavior will not be fixed.
  5. Restart the Delphi IDE.
This is suitable for Delphi 11 as well, the branch in the system registry is HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\22.0\Known IDE Packages and value name $(BDS)\Bin\LivePreview280.bpl, value data to change is Embarcadero FireUI Live Preview Package
If one get these errors when starting up Delphi RAD Studio, one will have to do these operations every time one reinstall, add "Additional Options", etc.