Recent

Author Topic: [Solved] Visual component not appearing on palette  (Read 5333 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 618
    • Double Dummy Solver - free download
Re: [Solved] Visual component not appearing on palette
« Reply #15 on: October 27, 2023, 06:36:29 pm »
If I install 3.0, is there a way to avoid re-installing all the custom packages that I use?
Lazarus 3.8 FPC 3.2.2 x86_64-win64-win32/win64

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: [Solved] Visual component not appearing on palette
« Reply #16 on: October 27, 2023, 06:44:29 pm »
If I install 3.0, is there a way to avoid re-installing all the custom packages that I use?
Short simple answer: no.
Today is tomorrow's yesterday.

wp

  • Hero Member
  • *****
  • Posts: 12908
Re: [Solved] Visual component not appearing on palette
« Reply #17 on: October 27, 2023, 07:11:33 pm »
Create a new package and add all the packages that you want to install, in particular all designtime and designtime-and-runtime packages (i.e. those which require a "Use" > "Install" if you'd install them separately). Then install this single package to install all the contained packages.

An example is JVCL which consists of about 20 packages to be installed - nightmare if to be done manually...

Another trick is to create a project group to which you can add packages and "real" or test projects. Doing a compile all runs the compiler over all packages and projects, and you can quickly test whether a change affects compilation somewhere. Or if you want to switch between package1 and package2 (because they are dependent on each other). Having the project group editor open all the time allows to quicky switch between packages and projects, simply by double-clicking.

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 618
    • Double Dummy Solver - free download
Re: [Solved] Visual component not appearing on palette
« Reply #18 on: October 27, 2023, 09:11:02 pm »
This seems like a greate solution. I assume you mean I need to Add -> New Requirement to a package, until that package includes all the packages I want to install. One problem - it's sometimes difficult to find the package you want from the New Requirement list. For example, I couldn't find the UniqueInstance package.
Lazarus 3.8 FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 12908
Re: [Solved] Visual component not appearing on palette
« Reply #19 on: October 27, 2023, 10:54:37 pm »
If you don't find a package in that list, the package simply is not known to the IDE. At least, you must open it by means of "Package" > "Open package file", in case of a designtime package.

You can also check the "online" box to see the packages availabe in OPM. (I never did this, but I guess you can install a package this way directly for getting it into the requirements list).

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4597
  • I like bugs.
Re: [Solved] Visual component not appearing on palette
« Reply #20 on: October 27, 2023, 11:08:54 pm »
One problem - it's sometimes difficult to find the package you want from the New Requirement list. For example, I couldn't find the UniqueInstance package.
The New Requirement list indeed shows UniqueInstance and other OPM packages when "Online" is checked. I almost forgot that.
« Last Edit: October 27, 2023, 11:12:09 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018