Recent

Author Topic: Re: [EXAMPLE] Adding RichMemo packages to a projects manually  (Read 589 times)

What I can do

  • Full Member
  • ***
  • Posts: 152
Re: [EXAMPLE] Adding RichMemo packages to a projects manually
« on: February 06, 2025, 04:11:23 am »
OS: Winw10@64
Compiler: Lazarus 3.8
Project: working on an older project that used TRichMemo but during compile it kicks out at the Uses section on RichMemo. Did some file search for *richMemo* and found the directory that contains the files. Try to configure Lazarus [Tool] ->Options-> environment/files but everywhere I put the path it kicks out to something like path is somehow invalid. The thing is a new project finds it without a hitch. What, where, and how can I get Lazarus to look in the installed directory for the older projects (older as in pre 3.8 install)
« Last Edit: February 06, 2025, 05:38:58 am by What I can do »

TRon

  • Hero Member
  • *****
  • Posts: 4163
Re: RichMemo not found
« Reply #1 on: February 06, 2025, 04:20:32 am »
Project inspector, add package dependency (whatever the name of the package might be), see also wiki

BTW: in case not having any idea what package(name) to add, then start a new project and place the (wanted) component on a form and open the project inspector: the package should automatically be added to the project in the inspector window so you can learn the name of the package in which the component resides (often I do not have no clue either and use that 'trick').
« Last Edit: February 06, 2025, 04:32:53 am by TRon »
Today is tomorrow's yesterday.

What I can do

  • Full Member
  • ***
  • Posts: 152
Re: RichMemo not found
« Reply #2 on: February 06, 2025, 05:07:58 am »
thanks for the reply TRon
I think i get the concept so I opened a working project look inside the Project Inspector and found the RichMemo reference to the installed folder. Now open the old project and choose Project Inspector add and pick the same file. Great that error was fixed but yet a new one comes up some other file in one of the other pas unit kicked out as can find file. How do I get all the file it needs to reference to.

What I can do

  • Full Member
  • ***
  • Posts: 152
Re: RichMemo not found
« Reply #3 on: February 06, 2025, 05:27:16 am »
ok a new application drop on a TRichMemo check Project inspector find two type of bundles but not files the bundles are richmemo_design and richmemoPackage but no where in the installed folder do anything of the such that I can find. I found two files that match the name but they are not the same. The files in a new application look like package icon references not file names and when I add the file names that match the package names I still get  units not found. so how to I get the add button to load that project looking icon as apposed to a direct file link.

TRon

  • Hero Member
  • *****
  • Posts: 4163
Re: RichMemo not found
« Reply #4 on: February 06, 2025, 05:29:58 am »
How do I get all the file it needs to reference to.

That is difficult to answer simply because what you're doing is a bit out of the ordinary.

If you are converting an old Delphi project then the usual path is using the Delphi importer/converter of Lazarus. I did not have much luck with that myself so I usually ended up figuring out all the components that the old project was using, then place all the components of all the forms onto one test project form in Lazarus if required install the required packages that contains some of these components), write down the list of package-names that are required and added those manually to the old project.
Today is tomorrow's yesterday.

TRon

  • Hero Member
  • *****
  • Posts: 4163
Re: RichMemo not found
« Reply #5 on: February 06, 2025, 05:32:40 am »
ok a new application drop on a TRichMemo check Project inspector find two type of bundles but not files the bundles are richmemo_design and richmemoPackage but no where in the installed folder do anything of the such that I can find. I found two files that match the name but they are not the same. The files in a new application look like package icon references not file names and when I add the file names that match the package names I still get  units not found. so how to I get the add button to load that project looking icon as apposed to a direct file link.
Install the richmemo component in your lazarus IDE using OPM, see also wiki download

Basically for every component: if you can place it onto a form in a new project then it is part of the IDE and the paths. dependencies and other details will be set/configured automatically and also make the package available in the project inspector so you can select it from the drop-down list.
« Last Edit: February 06, 2025, 05:35:27 am by TRon »
Today is tomorrow's yesterday.

What I can do

  • Full Member
  • ***
  • Posts: 152
Re: [EXAMPLE] Adding RichMemo packages to a projects manually
« Reply #6 on: February 06, 2025, 05:37:45 am »
OK, I didn't scroll down far enough and right click on Packages then choose add which pops up a whole different windows where I can find the two packages
many thanks TRon
« Last Edit: February 06, 2025, 05:40:11 am by What I can do »

TRon

  • Hero Member
  • *****
  • Posts: 4163
Re: [EXAMPLE] Adding RichMemo packages to a projects manually
« Reply #7 on: February 06, 2025, 05:44:02 am »
Ah yes, I probably should have mentioned that you can scroll further down  :-[

Glad to read that you got it solved for at least richmemo.

Happy coding !  :)
Today is tomorrow's yesterday.

 

TinyPortal © 2005-2018