Showing posts with label Code Snippets. Show all posts
Showing posts with label Code Snippets. Show all posts

3.22.2019 How to do Basic REST API Implementation in Lazarus (with Weather API example)

REST APIs are "the thing" to learn these days. But how should we get it to work on Lazarus? Let's see...

3.15.2019 How to Get Contents of a URL (in 2 Ways)

The Web is an amazing place. What if we could download the contents of a link on the web to our own Lazarus program? Let's find out how!

1.27.2018 How to make a Simple Video Player in Lazarus

We like to watch videos. How about playing videos on our own player? In this article, we are going to create a fun, simple video player.

10.13.2014 Find out if the Computer is Connected to the Internet

If you are doing something that depends on an internet connection, you would probably want to check if internet is available. That's what we are going to detect today.

7.30.2014 OOP Example: Artificial Persons that Respond!

Today we create bionic, robotic, futuristic human beings! That can even respond to your question! A virtual TPerson to be precise!

7.22.2014 What are Classes and What They Can Do for You

Learn one of the most powerful features of any language. We will be talking about things that come alive! Plus, learn how to build a robot with the keystrokes!

5.24.2014 How to show your program on System Tray!

Some programs can minimize, but some very special programs can squeeze themselves to the system tray! Users can even use right click menu to do most of the stuff while minimized.

3.24.2014 How to compress an Image to JPG (w/o preview)

Today we'll make a JPEG compressor. Sounds exciting, doesn't it? It can convert and compress from any other image formats too!

3.03.2014 How to Open a Folder in Windows Explorer

We often need to open a directory/folder in a File Manager to show its contents. Today we learn how to run Windows Explorer to automatically show the content of a directory of our choice.

2.21.2014 How to make your form Fullscreen & Restore

Lazarus Fullscreen Form project source code + article
Fullscreen is a common option in many of the popular programs we use. Today we learn the simple trick of making our program fullscreen.

2.20.2014 How to Show / Hide the Windows Taskbar with Lazarus

If you want to build some uncommon software which needs hiding the taskbar then check out this article.

1.12.2014 How to make your form Always on Top

We learn how to make our forms stay Always on Top so that it always stays shown on screen. It is good for projects where live information is shown or sometimes just for fun!

12.13.2013 How to list all the Fonts easily

font
Fonts are a very attractive customization option. It is essential in text editing programs. Changing the font by code is easy, but listing them? Today we'll see how to list all the fonts in a TListBox.

7.31.2013 How to get Computer Running Time

If you are reading this text then most probably you have your computer turned on. But for how long? You can get the time for how long the computer is running for.

6.11.2013 How to create a Basic Paint Software in Lazarus

Today, in our special post, we see how to create a basic paint software in Lazarus with some basic drawing tools and Open, Save, Resize options. A must see for Lazarians!

6.09.2013 How to Roll a Dice in your Program

Roll a dice Lazarus software code - decoration
Learn how to Roll a Dice in your own program and stay ahead in the Game! We learn how to use an Image List to store the images (self-contained) in the program and show the images on a TImage. (Images are included in sample zip file. Easy-peasy!)

6.04.2013 Dragging a Form by its body

Moving a window is not new! We move windows by its title bar at the top. But what if we want to move a window/form by dragging its body? Could we remove the title bar of our form and have fancy interface going on? Yes. And here's how...

5.31.2013 Highlight a part or all of Text in TEdit

Select text article thumb
Sometimes highlighting or selecting some part, not all, becomes necessary. We look into the method of how we can do it.

5.26.2013 How to get Drag and Drop files on your Program

drag and drop on a window
You can drag and drop files to softwares, that's old news. But can you drag & drop files over YOUR own software? Yes. And we learn how to...

5.24.2013 How to get the files/folders inside a ZIP file

Ever wanted to make your own Zip Viewer? In this article we look at a simple code for listing the files/folders inside a ZIP file, without any third party libraries.
 
Copyright 2013 LazPlanet
Carbon 12 Blogger template by Blogger Bits. Supported by Bloggermint