Home

Awesome

Delphi-CoreLib

Contains useful functions.
Lightweight (only 10000 lines of code) alternative to Jedi library.

Simple, crystal clear, non-obfuscated, fully commented code.
No external dependencies.

This library will be expanded if it gets enough Stars. Click the 'Star' button (top-right corner) if you like this library.
Over 100 files are waiting to be cured and added: graphics, simple encryption, internet functions (including file download routines), HTML manipulation, image manipulation, registry, math, and LOTS of visual components!

Click the 'Watch' button if you want to get notified about updates.


Downloading the code

This repository is only a placeholder and source of information. It is not updated since 01.2023. The code should be downloaded now from the LightSaber repository.


Files in this repository:

ccCore.pas
Over 200 functions for:

ccIO.pas
Super useful functions for file/folder/disk manipulation:

ccAppData.pas
Application-wide functions:

ccStreamBuff.pas
Extends TBufferedFileStream.
This class adds new functionality that does not exist in Delphi's original stream classes:

ccStreamFile.pas
Expansion class for Delphi classical TFileStream.
Allows you to directly read/write bytes, cardinals, words, integers, and strings to (binary) files.
Now replaced by ccStreamBuff.

ccBinary.pas

ccWinVersion.pas
This library expands the TOSVersion.
Use it to get the Windows version.
Example of functions:

ccINIFile
Features:

Setup:
Before using it you must set the ccAppData.AppName global var.
The class will use that name to automatically determine the INI file name/path which is %AppData%\AppName.Ini.
Example: If the AppName is set to "DelphiLightSaber" the ini file will be "c:\Users\UserName\AppData\Roaming\DelphiLightSaber\DelphiLightSaber.ini"

And... the cherry on top of the cake was left at the end!

Resume application's GUI state via ccINIFileVCL.pas

Do you have applications with forms with lots of controls (like checkboxes/radio buttons) and you want to save its status to disk on shutdown and resume exactly from where you left on application startup with just one function call?
Use SaveForm/LoadForm.

Example:

A full demo app that demonstrates how to save/load the GUI with just two lines of code can be found here: github.com/GodModeUser/Dephi-LightSaber-GUI_AutoSave


Filename convention

Example:


This library is freeware (see included copyright notice). The library cannot be used in Russia!

Enjoy and "Star" the library if it is useful to you.