Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Lazarus IDE

You're reading from  Getting Started with Lazarus IDE

Product type Book
Published in Feb 2013
Publisher Packt
ISBN-13 9781782163404
Pages 116 pages
Edition 1st Edition
Languages
Author (1):
Roderick Person Roderick Person
Profile icon Roderick Person

Creating a new component package


We are going to create a custom-logging component, and add it to the Misc tab of the component palette. To do this, we first need to create a new package and add out component to that package along with any other required resources, such as an icon for the component. To create a new package, do the following:

  1. Select package from the main menu.

  2. Select New Package.... from the submenu.

  3. Select a directory that appears in the Save dialog and create a new directory called MyComponents. Select the MyComponents directory.

  4. Enter MyComponents as the filename and press the Save button.

Now, you have a new package that is ready to have components added to it. Follow these steps:

  1. On the Package dialog window, click on the add (+) button.

  2. Select the New Component tab.

  3. Select TComponent as Ancestor Type.

  4. Set New class name to TMessageLog.

  5. Set Palette Page to Misc.

  6. Leave all the other settings as they are.

You should now have something similar to the following screenshot. If so, click...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}