Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a component from .pas file in delphi?

i've downloaded the RealTimeMarquee component for embarcadereo delphi 2010 which comes as a two files

RealTimeMarquee.pas
SimpleHTML.pas

But when i tried to open the file using delphi to compile it, i can't see the green button ( compile / build ) activated.

My question: How to install this component.

thankyou

like image 200
Rafik Bari Avatar asked Dec 02 '22 00:12

Rafik Bari


2 Answers

My question: How to install this component.

To install follow the steps below (same steps as Remy Lebeau-answer )

Step #1 . make a new package -

enter image description here

Step #2 . Select New package

enter image description here

Step #3 .

Add the source files RealTimeMarquee.pas,SimpleHTML.pas enter image description here

Step #4 . enter image description here

Step #5 . A)Compile and then install

enter image description here

Step #6 . On successful installation you will get this message. enter image description here

Step #7 . You can save the .dpk file also enter image description here

Step #8 . Use the component from Tool Palatte

enter image description here

like image 155
PresleyDias Avatar answered Dec 06 '22 10:12

PresleyDias


You cannot compile the files by themselves. You have to add them to a project first. If you want to install them into the IDE's component palette (assuming one or both of them implements a Register() function), you have to create a new "Package" project, add the files to that project, then you can Compile the project and Install the package.

like image 43
Remy Lebeau Avatar answered Dec 06 '22 09:12

Remy Lebeau