问题
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
回答1:
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 -

Step #2 . Select New package

Step #3 .
Add the source files RealTimeMarquee.pas,SimpleHTML.pas

Step #4 .

Step #5 .
A)Compile
and then install

Step #6 . On successful installation you will get this message.

Step #7 .
You can save the .dpk
file also

Step #8 . Use the component from Tool Palatte

回答2:
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.
来源:https://stackoverflow.com/questions/8685060/how-to-install-a-component-from-pas-file-in-delphi