Back to Browse

Build Your First Pascal GUI in Lazarus (Beginner Tutorial)

1.9K views
Oct 20, 2025
10:41

In this kid-friendly, beginner tutorial, we turn Object Pascal into a real GUI app using the Lazarus IDE on Linux (Fedora). You’ll learn how Lazarus projects work (units), how to design a form, drop components, wire up an event, and show a message — the perfect first step before games and animation. What you’ll do in this video * Open Lazarus and create a GUI project (unit) * Design a form with a Button and Edit (text box) * Change properties (Caption, Text, Size, Position) * Add an OnClick event and write code (ShowMessage) * Understand Object Pascal structure: interface, implementation, uses * Save a clean project folder (why GUI apps have more files) Who it’s for: OWL Scholars, kids learning to code, teachers, and beginners curious about Pascal + Lazarus on Linux. Prereqs: You’ve seen variables, functions, and conditionals in Python/JS, and watched our console Guessing Game in Pascal. ⏱️ Chapters 00:00 Intro & why GUI next 00:26 Lazarus project vs. simple program (units) 01:36 Tour: {$mode objfpc}{$H+}, uses, interface/implementation 04:24 Design the form (drag Button & Edit) 05:08 Properties panel: captions, size, position 07:41 Events: create Button1Click 08:38 Code: read Edit1.Text, ShowMessage('Hello, ' + name) 09:33 Run & test the app 09:50 Save the project (folders matter for GUI apps) 10:31 What’s next: timers & simple animation 💡 Try This (Homework) * Add a Label that mirrors the text as you type (use Edit1.OnChange). * Add a Clear button that empties the box and resets the label. * Change the form title dynamically to "Hello, [name]!" after clicking. 🏷️ Tags / Hashtags #LazarusIDE #FreePascal #ObjectPascal #PascalProgramming #KidsWhoCode #BeginnerProgramming #LinuxCoding #FedoraLinux #GUIProgramming #RAD #STEMEducation #OpenWiseLearning

Download

1 formats

Video Formats

360pmp49.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Build Your First Pascal GUI in Lazarus (Beginner Tutorial) | NatokHD