Components and Code examples
From Lazarus wiki
Jump to navigationJump to search
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
français (fr) │
magyar (hu) │
Bahasa Indonesia (id) │
italiano (it) │
日本語 (ja) │
한국어 (ko) │
português (pt) │
русский (ru) │
slovenčina (sk) │
中文(中国大陆) (zh_CN) │
中文(臺灣) (zh_TW) │
Default components provided by Lazarus
The rest of this page covers components not delivered with Lazarus. For the default components provided with Lazarus, please see Lazarus Components Directory.
As Lazarus uses the FPC compiler, you can also use packages provided by FPC. See Package List.
Lazarus-CCR Released Components
Note: This list is not complete. A lot of components in Lazarus-CCR are mentioned under the not hosted here section
Note: Please move ONLY the components/applications/programs in the Lazarus CCR repository from the list below into this list
Lazarus-CCR archiving
- FreePascalArchivePackage - Conversion of TurboPower Software's Abbrevia library for Free Pascal.
Lazarus-CCR file formats
- FPExif - Library for reading/writing EXIF metadata to image files (jpeg, tiff).
- FPSpreadsheet - A library for handling spreadsheet files. Supports the formats from MS Excel (XLS, XLSX, Excel XML) and OpenOffice. It also supports these file types: CSV, HTML, Wikitables.
- fpvectorial - Text Document Support - A library for handling text document files. Currently supports exporting to .docx and .odt file formats only.
Lazarus-CCR tools
- ExtraSyn - Additional highlighters for TSynEdit.
- GridPrinter - Component to simplify printing of grids. Includes a preview component.
- LazBarcodes - Generate barcodes (QRCode, Aztec, DataMatrix etc).
- OnGuard - A port of Turbo Power OnGuard (software registration, protection, serial numbers etc).
Lazarus-CCR visual components
- CalLite - Lightweight calendar component
- CAPTCHA - Displays random characters which are colored and rotated and overlayed by colored lines to impede machine detection of the CAPTCHA text.
- ChemText - A label which displays subscripts and superscripts in chemical formulas.
- ColorPalette - Cross-platform color palette grid with ability to select a color from a palette.
- ExCtrls - Collection of controls which try to overcome limitations posed by the widgetset. Moreover, some missing controls are added.
- Flag component - A collection of country flags.
- Fshcomp - Edit components.
- HistoryFiles - A component for store the recent files list into an .ini file and show the result into a menu.
- Industrial - A set of industrial-themed components (LED indicators, seven-segment display, analog gauges, thermometer gauges, knob, on/off switch, etc).
- jujiboutils - Set of components to input and validate different kinds of data, floats, dates, etc.
- JVCL - Lazarus port of a large fraction of the Visual Component Library for Delphi.
- LazMapViewer - Component for embedding maps obtained from the internet, such as Google maps or OpenStreetView, into a Lazarus form.
- LongTimer - Visual component based on TIdleTimer working with long intervals (daily, weekly or monthly).
- mbColorLib - Comprehensive library with more than 30 components for color selection in several color models (RGB, CYMK, HSV, HSL, CIE-Lab).
- Poweredby - Visual drop-in component to show a 'Powered by Lazarus' splash screen for 1 second on TForm.Create to promote Lazarus/FPC.
- ScrollText - Visual component that displays up-scrolling text (like a Credits screen).
- SpkToolbar - Ribbon-control like in newer Microsoft Office applications.
- TPlaySound - Visual component to play WAV files in Windows and Linux.
- VisualPlanIt - A set of synchronized, data-aware components for adding time, task, & contact management capabilities to applications. Get that Outlook look & feel without the hassle.
Packages/Programs for FPC/Lazarus (not hosted here)
Uncategorized
- 5dpo (5dpo Component Library - Sdpo) - A set of components released by the 5dpo Robotic Soccer Team.
- Brook Framework - The perfect Free Pascal framework for your web applications.
- CUPS for Lazarus project - Common UNIX Printing System for FPC/Lazarus. NOTE: obsolete. Replaced by Printer4Lazarus package included in current Lazarus versions.
- DateControls Package for Lazarus - Superseded by DateTimeCtrls Package which is included in Lazarus since v1.4.
- Diagram - A unit to draw a diagram using a model/view system.
- DelphiWebScript - Object-oriented scripting engine based on Object Pascal.
- dfsSplitter: a Netscape look alike splitter. See forum thread.
- DrawObjectsExtended - A graphical component ported from Delphi to draw structured diagrams.
- ExcelInterfaces - A component to interface FPC and Lazarus programs with the Excel spreadsheet tool. It also demonstrates the use of COM interfaces on the Windows platform.
- FIBL - FreeIBComponents library to access Firebird server.
- FreeImage - An open source library project which supports popular graphics image formats like PNG, BMP, JPEG, TIFF and others (works with Windows, Linux and macOS). PicViewer is a Example Application (Windows only) and shows basic usage of this DLL.
- Fundamentals Code Library - Libraries for Unicode, strings, data structures, sockets and mathematics.
- GolfmlClass - A class to accept data via properties and write a well-formed golfml XML golf information exchange file.
- Greyhound Project - A tiny ORM-ish for Free Pascal. You can use SQLdb, Zeos or whatever you want to connect to a DBMS.
- ICU4PAS - An Object Pascal, cross platform, Direct Class Wrapper over the ICU libraries. ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications.
- Indy
- Indy for Lazarus - 110+ components for internet work.
- Indy with Lazarus - Newer attempt, both Indy 9 and Indy 10.
- Internet Tools - A set of units for webpage processing: HTML/XML parser with SAX/DOM-like interface, XPath 2 / XQuery expressions engine, CSS 3 selectors, templates with XML pattern-matching and a HTTP/HTTPS connection wrapper (around Synapse and WinInet).
- ioda - A full-text search database: a word indexing and retrieving engine. It stores unique words from a file or database source in a btree and their repeaters in an flexible and highly space optimized list structure. Each stored word "knows" its source, position in the source and some (optional) info bytes.
- JEDI-SDL - Pascal headers for SDL library.
- lazarus-zlib - Library with simple functions for work with zlib-archives (it uses the original zlib source, compiled in obj-files).
- LGenerics - Containers, graphs, algorithms on graphs.
- nixie - Numerical display using images of nixie tubes.
- Pascal LZMA SDK
- Notepad++ plugin template for Lazarus - A demo template that should get you started quickly with writing your own plugin for the free (Windows only) Notepad++ text editor. Ported from the existing Delphi template.
- PascalSCADA - A set of components to make easy the development of HMI/SCADA applications (applications that needs interact with PLC's and others industrial devices).
- Pascal Script is a RemObjects pascal script interpreter. See Pascal Script. It is also used in the Lazarus IDE to provide scripting functionality.
- PortAudio - A portable cross-platform audio API currently available for Windows, macOS, Unix (OSS/ALSA), SGI, and BeOS. It allows cross-platform compatible source code also in LAZARUS. The download contains the wrapper file that makes the C Library available and also example applications showing how to use the PortAudio DLL under Lazarus LCL / Windows. The wrapper file for portaudio.DLL is from the UltraStar SourceForge project.
- QRcode - QR-code generator (bitwise and PNG).
- qxotica - Tools for creating qooxdoo Web apps. Develop both the JavaScript qooxdoo-based client and the Pascal server app in Lazarus.
- RackCtls - A collection of components with a "Hi-Fi system" appearance.
- RealThinClient SDK - Components for building stable HTTP(S) clients, servers, routers, proxies, load balancers and ISAPIs with Delphi/Lazarus.
- SplashAbout - A simple object to drop in your app that creates a splash screen and About dialog with the minimum of effort (non-visual version).
- Note: Use SplashAbout for a visual drop-in component version.
- Synapse - Starting with version 32, Lucas Gebauer's outstanding TCP/IP library is now compatible with Free Pascal and Lazarus. Lucas has also just released version 12 of his Synaser serial port communications suite that also runs under Free Pascal.
- Synedit-Port - SynEdit 2.0.5 port. SynEdit is an advanced multi-line edit control.
- TTreeListView - The combination of a TTreeView with a TListView, showing items in a tree with columns.
- UltraStar Deluxe - Headers for the following libraries for Windows, Linux and macOS (with a few exceptions): portaudio, bass, ffmpeg, SDL, libpng, FreeImage, freetype, JEDI-SDL, Lua, midi, pcre, portmixer, projectM, samplerate, SQLite, zlib, fft.
Archiving
- bzip2lib - Stream classes for bzip2 compression and decompression.
- libtar - Classes for TAR archives by Stefan Heymann, who kindly relicensed so that they are now in the FPC 2.1.1 and later distributions. Can be combined by zstream to create .tar.gz files.
- PeaZip - Cross-platform archive/zip/7z/etc manager similar to WinZip or 7zip Explorer. Written in Lazarus.
- ZipFile - Component that encapsulates a zipfile, you can read and write from it as if it's a filesystem.
- Zlibar - Objects to create and extract a zlib compressed archive containing multiple files.
Databases
- fb embedded2 Laz - Using a FireBird server included in your executable with Lazarus by including the Firebird DLLs as a resource. Note: the word "embedded" does not mean regular embedded Firebird here.
- IBX - Component for direct connecting to FirebirdSQL.
- ioda - A full-text database: a word indexing and retrieving engine.
- tiOPF - TechInsite Object Persistent Framework.
- TParadoxDataSet - A TDataSet implementation that can read Paradox files up to version 7 (and up?).
- TPSQL - Components for connecting to PostgreSQL database servers.
- SQLitePass - Components for connecting to SQLite database.
- ZeosDBO - Component for connecting to multiple database (Firebird, PostgreSQL, MySQL, Oracle).
- ZMSQL - TBufDataset SQL enhanced in-memory database, storing data as delimited text files.
Graphics
- DelphiTwain - Library that lets you scan documents using the TWAIN interface on Windows.
- Graphics libraries - Main graphic libraries you can use to develop.
- pyramidtiff - A command line tool to create from an image file a TIFF file with multiple resolutions usable with iipimage and other high resolution image viewers.
2D Drawing
- ZenGL - Cross-platform game development library using OpenGL.
- BGRABitmap - Drawing shapes and bitmaps with transparency, direct access to pixels, etc.
- LazRGBGraphics - A package for fast in memory image processing and pixel manipulations (like scan-line).
- fpvectorial - Offers support to read, modify and write vectorial images.
- Double Gradient - Draw 'double gradient' & 'n gradient' bitmaps easy.
- Gradient Filler - TGradientFiller is the best way to create custom n gradients in Lazarus.
- PascalMagick - API for interfacing with ImageMagick, a multi-platform free software suite to create, edit, and compose bitmap images.
- Sample Graphics - Graphics gallery created with Lazarus and drawing tools.
- Fast direct pixel access - Speed comparison of some methods for direct bitmap pixel access.
- SMNetGradient - A gradient fill component for Lazarus.
- TMetafile/TMetafileCanvas - Metafile API implementation for Windows.
3D Drawing
- Castle Game Engine - A cross-platform (desktop, mobile, console) 3D and 2D game engine. Features a visual editor. Supports glTF, X3D, Spine and more. Supports various graphic effects like shadows and PBR.
- GLScene - A port of the 3D visual OpenGL graphics library GLScene.
- TOpenGLBox - A barebones OpenGL component for Lazarus that provides an OpenGL rendering area.
Charts
- TAChart - Charting component for Lazarus.
- PlotPanel - A plotting and charting component for animated graphs.
- Perlin Noise - An article about using Perlin Noise on LCL applications.
Multimedia
- ACS - Audio Component Suite, a collection of components to develop applications for audio playing/recording/processing. Can play wav/ogg/mp3/mp2/wma, can record from any recordable source, ripping and more.
- Bluetooth - Accessing Bluetooth devices. For example the Wiimote.
- Audorra - A digital audio library for Delphi and Free Pascal.
- LibSndFile.dll - A C library for reading and writing files containing sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard library interface. The download also contains a GUI demo application written under Windows.
- mpg123.dll - A MPEG 1.0/2.0/2.5 decoder DLL for layers 1,2 and 3. The MPEG 1.0 layer 3 aka MP3 is most commonly tested. The Library itself is available for Linux, macOS, FreeBSD, SunOS4.1.3, Solaris 2.5, HPUX 9.x, SGI Irix and Cygwin or plain MS Windows. Cross-platform compatible source code should be possible in LAZARUS as soon as the wrapper file for portaudio.DLL is tested by Linux and Mac owners. The example code contains two wrapper files, tested under Windows 32bit only.
- UOS - (United Open-libraries of Sound) unifies the best open-source audio libraries. With uos you can: Listen to mp3, ogg, wav, flac, m4a, opus, cda ... audio files. Deal with 16, 32 integer or float 32 bit resolution. Do internet audio streaming of mp3 and opus files. Record all types of input into wav or ogg file with 16 or 32 bit resolution. Add DSP effects and filters, however many you want and record it. Listen to multiple input and output. Produce sound from built-in synthesizer.
Science and Technoloy
- CyberUnits - A cross-platform class library for rapid programming of high-performance computer simulations in life sciences.
- PUMA Repository - A collection of Pascal units that support development of medical software with Lazarus and Free Pascal:
- PUMA Unit converter: Exports functionality to parse and convert measurement data consisting of a numeric value and a unit of measurement.
- PUMA HL7 engine: A collection of Pascal classes that support handling of HL7 messages.
- PUMA EDFplus engine: A class library facilitating parsing, reading and writing European Data Format (EDF and EDF+) files
- Runge-Kutta - A scientific component to integrate partial differential equations, using events.
Tools
- FpSystools - Conversion of TurboPower's Systools to Lazarus/FPC.
- DCPcrypt - DCPcrypt cryptographic component library.
- RXfpc - Some of the well known RXLib components converted to Lazarus.
- MultiLog - A Log system designed for FPC/Lazarus.
- log4delphi - A Log system based on log4j.
- UniqueInstance - A component to force only one instance running at same time.
- XDev Toolkit - Cross-platform development tools.
- MouseAndKeyInput - Tool for cross-platform manipulation with mouse and keyboard input.
- PascalSane - Bindings for the libsane scanner API, with demo application.
- fppkggui - A simple GUI for fppkg.
- SymScan - Barcode scanner interface for Symbol/Motorola MC series handhelds.
- UTF8 Tools - Handle UTF-8 code points, detect Unicode char classes.
- Delphi form to HTML converter - Convert Delphi forms to HTML.
- InstantFPC - Allows to run Pascal programs as Unix scripts.
- LazProfiler - IDE add-on for one-click profiling of your project.
Edit controls and viewers
- ATSynEdit - Multi-line editor control with syntax highlighting, alternative to SynEdit.
- ATBinHex - Viewer-only component for files of unlimited size (doesn't load entire file to memory).
- SynEdit - Editor control with syntax highlighting, used in the Lazarus IDE.
- SynEdit/port - SynEdit 2.0.x port.
- PowerPDF - Port of the PowerPDF components for Lazarus.
- RichMemo - Rich-text editor and viewer (cross-platform).
- RichView - Port of the TRichView Freeware Edition components to Lazarus.
Networking
- BeepFp - BEEP Protocol framework.
- FPC and Apache Modules - Headers for creating Apache modules with FPC.
- fpctwit - OAuth v1 library using Synapse. Sample Plurk, Twitter clients. Sample Lazarus Twitter client.
- Hprose - High performance remote object service engine. It has fast serialize and RPC library for Delphi and Free Pascal.
- lNet - Networking components which provides simple, single-threaded event-driven networking suite with protocols from TCP and UDP to SMTP and HTTP. lNet was designed to not depend on any external libraries and is extremely portable.
- Sockets - TCP/IP sockets components.
- Web Services Toolkit - Web Services authoring and consumption.
- TML Messaging Suite - Network messaging library for rapid development of extensible and scalable interfaces.
Containers
- Hprose - A collection of Variant type containers, such as IList, IMap, TArrayList, THashedList, TCaseInsensitiveHashedList, THashMap, THashedMap, TCaseInsensitiveHashMap, TCaseInsensitiveHashedMap, TSmartObject, etc.
- StringHashMap - String-to-pointer associative map container. Fast and memory efficient.
- LGenerics - Library with wide range of generic containers.
System
- Bluetooth - Accessing Bluetooth devices.
- EpikTimer - Precision timer component written specifically for Lazarus.
- FileAssociation - Register file associations for all Windows versions. This includes Default Programs feature for Vista+.
- Manager Worker Threads System - Manager Worker Thread system to process simultaneous data objects in real-time.
- MDButtonsBar - ButtonsBar to MultiDoc Component.
- MPICH - Bindings for the MPI - Message Passing Interface. Distributed computing.
- MultiDoc - A component to write pseudo-MDI application with Lazarus.
- TTDINotebook - A component that provides a Tabbed Document Interface (TDI).
- Python4Delphi - A port of Python4Delphi that allows you to use Python scripts with Lazarus/FPC.
- TrayIcon - A multi-platform system tray component.
- TPopupNotifier - How to use TPopupNotifier to show "balloon help".
- Yet another Running Timer - A thread-safe timer.
Visual components
- ATButton - OS-independant flat button, part of ATFlatControls.
- ATGroups - One-to-six page-controls, each based on ATTabs, part of ATFlatControls.
- ATGauge - Replacement for Delphi's TGauge, part of ATFlatControls.
- ATLinkLabel - A label which shows a clickable URL, part of ATFlatControls.
- ATListbox - OS-independant Listbox, owner-drawn, part of ATFlatControls.
- ATScrollBar - Scrollbar, not OS-themed, owner-drawn, part of ATFlatControls.
- ATStatusBar - Statusbar, not OS-themed, owner-drawn, part of ATFlatControls.
- ATTabs - Tab-control, not OS-themed, owner-drawn, part of ATFlatControls.
- BGRAControls - Components which are using the power of the BGRABitmap package. BGRAImageList, BGRASpeedButton, BGRAButton, BGRAPanel.
- CmdLine - A command-line prompt as visual control.
- ColorBox - Color picker with preview.
- Eye-Candy Controls - Package on more than twenty OS-themed controls incl. slider, ruler, button, multi-column checklistbox and many others.
- Extended - A last level visual components package, which can manage a management software linked to data.
- FileMenuHandler - Handles recent files list and Open, Save, Save As, Exit Commands.
- GeckoPort - Lazarus port of Takanori Ito's Gecko SDK for Delphi, including TGeckoBrowser.
- GridLayout - Component to arrange other components in a grid.
- Lui Controls - A set of visual controls (TToggleLabel, TMenuButton).
- OrphPort - Subset of TurboPower's Orpheus controls.
- RingChart and AnalogWatch - Another Elliptical Chart and an Analogic Watch for Lazarus and FPC.
- SplashAbout - Splash and About dialogs from a visual drop-in component.
- Spook's Panel Components - A collection of panel components.
- TSubForm - A Data-Aware SubForm that replicates controls based on records in a dataset.
- TGradButton - A good looking button component.
- TMyRollOut and ExpandPanel - A collapsable panel with a button (like TJvRollOut).
- THtmlPort - Lazarus port of Dave Baldwin's HTML Components (THtmlViewer, TFrameViewer, TFrameBrowser).
- TRepeatButton is a descendent of TSpeedButton with a repeat property. So, if you keep the mouse pressed on the button, it will repeat the code from the onClick event, until the mouse is released.
- uE Controls - A set of instrumentation controls for Lazarus and Free Pascal, compilable under Windows and Linux.
- VirtualTreeview - Port of VirtualTreeview from Soft-Gems.
- VirtualDBTreeEx - Checking interface built with data with checking rules, inherits VirtualTreeview.
- Wile64 - Components for Lazarus: TGifAnim, TColorProgress, TLabelCut etc.
- ZVDateTimeControls Package - Package contains TZVDateTimePicker (the clone of Delphi's TDateTimePicker) and TDBZVDatePicker (a data aware version of TZVDateTimePicker).
Lazarus IDE Extensions
- Manual Docker - The extension allows Messages window to dock to the source editor.
- wndInspector FF8S - IDE window inspector find file & select.
- See also Lazarus IDE plugins.
Hardware Access
National Instruments PCI,PCI-e,PXI,PXI-e measurement (DAQ) cards
- NIDAQmxBase and NIDAQmx - Units for using National Instruments data acquisition devices through the NI-DAQmxBase (Linux, Windows, macOS) and NI-DAQmx (Windows and old NI-DAQmx 8.0.2 for Linux)libraries.
- NI-DAQmx and NI-DAQmxBase Pascal examples
National Instruments PCI,PCI-e,PXI,PXI-e oscilloscope/digitizer cards cards
- Pascal bindings for NI-Scope driver - Units for controlling National Instruments oscilloscope/digitizer cards.
- NI-Scope Pascal examples
Commercial Packages for FPC/Lazarus
- AnyDAC - A commercial data access library, ported to Lazarus. Supports Firebird, MySQL, Oracle, PostgreSQL, SQLite, Interbase, SQL Server, IBM DB2, SQL Anywhere and ODBC on Windows and Linux 32bit platforms. The MS Access and dbExpress are supported on Win32 platform only. In plans to add all drivers support on Win x64, Linux x64, macOS 32-bit and x64 platforms.
- Devart PostgreSQL Data Access Components (PgDAC) - PostgreSQL components that use native wire protocol no libpq needed.
- Devart SecureBridge Components - SSH/SFTP/SSL components to easily create SSH tunnels and SFTP clients and much more.
- Devart Universal Data Access Components (UniDAC) - Components for direct access to multiple databases.
- TMS FNC UI Pack - UI controls for 3 frameworks and 5+ operating systems.
- TMS FlexCel Studio for VCL/LCL - A spreadsheet component. Only older component is shown here.
- TMS LCL Cloud Pack - Seamless access to cloud services.
- IB Objects - For developing client and service applications for InterBase/Firebird.
- FastReport for Lazarus - Reporting tool component.
- OptiVec for Lazarus - High-performance vector and matrix library: math, analysis, statistics, linear algebra, FFT, signal processing, curve-fitting etc. Windows 64-bit only.
Example programs
There are a LOT of example programs in the examples directory of your Lazarus installation.
See also:
- Page Of Code Sites: includes sites such as Rosetta Code, Torry and much more
- Tutorials: tutorials for FPC/Lazarus
Example programs not supplied with Lazarus:
- Contacts Database - An expanded version of the address book example with reports.
- Creating LCL Control From Libraries - Shows you how to create and manage LCL UI controls in an application from plug-ins (dll/so/dynlib).
- Dependency Calculator Dependency Calculator: demonstrates topological sort algorithm to sort dependencies (directory dependencycalculator)
- JCSV (Jans CSV Components) - Working Example of TJansCSV Component Set
- IniEdit - Iniedit: a small application/form that shows how to use Synmemo to show syntax-highlighted ini file editing, as well as using a timer and controls to simultaneously edit another part of the ini (directory iniedit)
- How To Use Interfaces - Working Example of Interfaces and generics.
- Kaldemonia - Google Searcher shows simple threading, using Synapse networking library.
- Libview - Views all exported function names of a given library.
- LRS_Explorer - A little software to add some pictures, music, etc.. into a Lazarus resource (lrs) file.
- Micro-mainframe Transmission Command Generator for IBM Mainframes
- OpenGL Tutorial - Example code for the OpenGL tutorial
- Robot - The Game - Very easy written sample for beginners
- SSHClient - SSHClient: complete Windows demo of Synapse+encryption units that implement an SSH terminal. Includes required DLLs. (directory SSHClient)
- Sudoku - A Sudoku solver.
- SysRec - Video Capturing and Recording application, you can download it here.
- Synapse - The Synapse page has an SSH/Telnet client unit and example program that demonstrates running commands on servers. See also SSHClient above.
- TSqlite3 Master Detail Example - Working Master Detail Example using 3 small tables and sqlite components.
- LDBase - A Database agent to create and to modify tables dbf. Run only for windows
- CAD program written in Lazarus - electrical engineering software developed since 2012 to 2023 (view source on github)
- LDFiles - Utilities for searching files, text within files and file database. Run only for windows
RTL, FCL and LCL Usage examples
- Manager Worker Threads System - How to design a manager worker thread application.
- Dialog Examples - Useful dialogs not found in the Component Palette.
- Howto Use TOpenDialog - How to use the File/Open dialog.
- Howto Use TSaveDialog - How to use the File/Save dialog.
- ServiceManager - How to use the ServiceManager to handle running services.
See Also
- Free Pascal contributed units list
- Lazarus Components Directory
- Operating Systems written in FPC
- Package List Packages included with FPC
- Projects using Free Pascal - FPC + Lazarus
- Using the Lazarus-ccr SVN repository