Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
How to add a new folder to the IDE component pallet
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Q about subverting type c...
by
440bx
[
Today
at 05:12:13 am]
[resolved]How to use Chin...
by
jianwt
[
Today
at 04:58:21 am]
Quiche (and BoringSSL) bi...
by
TRon
[
Today
at 03:54:19 am]
qt5: can't install trunk ...
by
vfclists
[
Today
at 03:51:53 am]
Common File Dialogs Have ...
by
mas steindorff
[
Today
at 02:37:01 am]
Does the Alt-Brackets key...
by
vfclists
[
Today
at 01:21:40 am]
FPC on Web3
by
VisualLab
[
Today
at 01:07:36 am]
Cant interact with Main F...
by
Joanna
[
Today
at 12:52:14 am]
FClass<TArray<Char>> can ...
by
jamie
[
Today
at 12:44:22 am]
NON(!)-EXE FFPlay4Laz
by
TRon
[
Today
at 12:36:28 am]
[Solved] Package Laz_Syna...
by
Aruna
[
Today
at 12:31:21 am]
ZenGL Update +android + M...
by
Seenkao
[
Today
at 12:16:01 am]
Can't compress JPEG image...
by
wp
[October 09, 2024, 11:10:30 pm]
New Big Integer library i...
by
Bart
[October 09, 2024, 10:17:50 pm]
Trivial 64 bits maths
by
MarkMLl
[October 09, 2024, 07:40:21 pm]
Free Pascal releases
by
Thaddy
[October 09, 2024, 07:03:01 pm]
Opacity of BGRA TBCPanel ...
by
kirchfritz
[October 09, 2024, 06:22:44 pm]
Simulating a "Zen mode" i...
by
Martin_fr
[October 09, 2024, 05:42:29 pm]
[Feature] High level Vari...
by
Thaddy
[October 09, 2024, 04:50:37 pm]
Installation on Sequoia
by
pat03uk
[October 09, 2024, 04:05:49 pm]
Error printing to zebra p...
by
Blacha
[October 09, 2024, 02:32:50 pm]
Simple confirmatory quest...
by
rvk
[October 09, 2024, 02:19:50 pm]
Ubuntu Mate / Laz 2.2.6 /...
by
dbannon
[October 09, 2024, 01:33:46 pm]
I expect FPC instead of T...
by
Thaddy
[October 09, 2024, 12:59:36 pm]
What contains 'TForm.Base...
by
Hartmut
[October 09, 2024, 11:24:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to add a new folder to the IDE component pallet (Read 587 times)
Derz
New Member
Posts: 21
How to add a new folder to the IDE component pallet
«
on:
February 03, 2023, 12:03:22 am »
When I tried to add a new component to the IDE in code which worked with Delphi, I hosed my Lazarus installation. It would not run, I had to reinstall. The Line of code in causing the issue (no error in compiling or anywhere) was..
Code: Pascal
[Select]
[+]
[-]
procedure
Register
;
begin
RegisterComponents
(
'MyComponents'
,
[
TMyStringGrid
]
)
;
end
;
I searched but could not find a means of adding a new "folder" to the IDE component pallet. I assume there must be a way to add "MyComponents".
Logged
KodeZwerg
Hero Member
Posts: 2269
Fifty shades of code.
Re: How to add a new folder to the IDE component pallet
«
Reply #1 on:
February 03, 2023, 12:24:03 am »
In your shown code all is cool so error must be somewhere else.
Here is a small example of a full code, maybe you find in yours a difference.
Code: Pascal
[Select]
[+]
[-]
unit
MyComponent_register
;
{$mode objfpc}{$H+}
interface
uses
Classes
,
SysUtils
,
MyComponentU
;
procedure
Register
;
implementation
{$R mycomponent.dcr}
{ Registration }
procedure
Register
;
begin
RegisterComponents
(
'My Component'
,
[
TMyComponent
]
)
;
end
;
end
.
Logged
«
Last Edit:
Tomorrow
at 31:76:97 xm by
KodeZwerg
»
Derz
New Member
Posts: 21
Re: How to add a new folder to the IDE component pallet
«
Reply #2 on:
February 03, 2023, 10:22:59 pm »
Seeing KodeZwerg's affirmation that the technique I used should work, I tried again, and it did work. The I presume that during the IDE Rebuild, something went wrong due to a corrupt file or something. The Lazarus reinstall must have fixed that.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
How to add a new folder to the IDE component pallet
TinyPortal
© 2005-2018