You are previewing Getting Started with the Lazarus IDE.
O'Reilly logo
Getting Started with the Lazarus IDE

Book Description

Get to grips with the basics of programming, debugging, creating components, and documenting projects with the Lazarus IDE

  • Creating new projects

  • Create components for use in Lazarus

  • Documenting Lazarus project

In Detail

A good integrated development environment can be the key to creating and delivering software on time and budget. Having a programming language and a development environment that runs on multiple platforms greatly eases and lessens the time taken on creating cross-platform applications. An IDE that is compatible with a legacy code base allows developers to leverage existing libraries in future applications.

"Getting Started with Lazarus" is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you take advantage of the power of the Lazarus IDE and Free Pascal to develop software that can be created for cross-platform use.

"Getting started with Lazarus" discusses developing software with the open source cross platform integrated development environment and the Free Pascal language.

We’ll learn how to install Lazarus on various platforms such as Linux and Windows, as well as how to create new projects and convert existing Delphi projects to Lazarus projects by learning the differences between Delphi’s Pascal syntax and Free Pascal’s Object Pascal using a real world example project.

We’ll learn how to create custom components for use in Lazarus. We’ll also learn the basics of documenting a Lazarus project using the Lazarus Documentation Editor.

Finally we will learn that the IDE can be rebuilt using a different widget type, specifically GTK 2.

Teach yourself the basics of programming with Lazarus and the open source IDE for the Free Pascal language.

Table of Contents

  1. Getting Started with the Lazarus IDE
    1. Table of Contents
    2. Getting Started with the Lazarus IDE
    3. Credits
    4. About the Author
    5. About the Reviewer
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Installing and Configuring the Lazarus Development Environment
      1. Why Lazarus?
      2. Installing Lazarus in Linux
        1. Downloading and installing the Lazarus Linux RPM package
        2. Requirements
        3. Downloading and installing the Lazarus Linux DEB package
        4. Lazarus for Ubuntu
      3. Installing under Windows
      4. Installing under other OSes such as FreeBSD or Mac OS X
        1. Installing Lazarus on Mac OS X
        2. Installing under FreeBSD
        3. Installing from source
      5. Configuring the Lazarus development environment
      6. Summary
    9. 2. Getting to Know the Lazarus IDE – a Quick Tour
      1. The Object Inspector window
      2. The Component Tree window
      3. The Source Editor window
        1. Main menu, quick icons, and the LCL Palette window
        2. Project Options
        3. The Run menu
        4. The Tools menu
        5. The LCL Palette
        6. The Standard tab
        7. The Additional tab
        8. The Common Control tab
        9. The Dialogs tab
        10. The Data Controls tab
        11. The SQLdb tab
      4. Summary
    10. 3. Creating a Hello World Program
      1. Hello World console application version
        1. Modifying the code
        2. Compiling and running
      2. Hello World graphical user interface version
        1. Adding components and modifying code
        2. Compiling and running
      3. Debugging
      4. Expanding the Hello World application
      5. Debugging commands
      6. Other debugger features
      7. Deploying
      8. Summary
    11. 4. Converting Delphi
      1. Differences between Lazarus and Delphi Components
        1. Fonts
        2. Dragging and docking
        3. TEdit and TCustomEdit
        4. TCustomTreeView and TTreeView
        5. Messages and events
        6. Unit differences
      2. Conversion methods
        1. Filenames and extension
        2. Semantic and syntax differences
        3. 32-bit and 64-bit considerations
        4. Resource files
        5. Using the Convert Delphi Project Wizard
        6. Converting a Delphi project manually
      3. Summary
    12. 5. Creating a Lazarus Component
      1. Creating a new component package
      2. Adding properties
        1. Adding events
      3. Events with more parameters
      4. Property editors
      5. Component editors
      6. Summary
    13. 6. The Lazarus Documentation Editor
      1. Building the LazDE tool
      2. Examining existing source documentation
      3. Documenting your code
      4. Using FPDoc
      5. Summary
    14. 7. Rebuilding Lazarus with a GTK2 Interface
      1. Rebuilding Lazarus interface on Windows
      2. Summary
    15. Index