Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Components disappear from the component palette


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Sep 10, 2014 4:15 AM Last Post By: John Farmer
John Farmer

Posts: 22
Registered: 11/12/10
Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2014 12:06 PM
Hi,

I have a project containing a run-time and design-time package plus a test application which all build as expected to reveal three components on the component palette. If I now close BCB6 down and then re-open it, the components are no longer there. I need to select Component|Install packages|Design Packages... and re-apply the check mark next to my component package. I recall that I had this problem quite some time ago and was able to resolve it by moving my component tab to the left-most position on the component palette.

Until recently this has worked fine (but never did get to the bottom of why it happended in the first place). Now my trick no longer works. What I have discovered, however, it that if I remove the test application, from the project group, perform a build, add the test application back into the project group then build and then run it, the components do indeed remain after BCB6 is closed and reopened again.

Any ideas why this is happening, is there a better method of resolving this oddity?

Regards
FarmerJo
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2014 12:26 PM   in response to: John Farmer in response to: John Farmer
John wrote:

I have a project containing a run-time and design-time package plus a
test application which all build as expected to reveal three
components on the component palette. If I now close BCB6 down and
then re-open it, the components are no longer there. I need to select
Component|Install packages|Design Packages... and re-apply the check
mark next to my component package.

Individual projects maintain a list of enabled and disabled packages. It
is likely that your project (or even the default project) is excluding your
packages so they do not get loaded.

The best setup is to unload all projects from the IDE, then go into the Install
Packages dialog and enable only the bare minimum packages that every one
of your project needs, then save. Then make sure your individual projects
do not have any references to any packages that they do not actually use.
This helps allow the IDE to load/unload packages on an as-needed basis.

--
Remy Lebeau (TeamB)
John Farmer

Posts: 22
Registered: 11/12/10
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2014 1:23 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Hi Remy,

Thanks, a few more questions on this.

The best setup is to unload all projects from the IDE, then go into the Install
Packages dialog and enable only the bare minimum packages that every one
of your project needs, then save.

If I understand this correctly, will this result in a greatly reduced component palette? What would be the bare minimum, could it be determined by simply by disabling a package and attempt to build the application etc?

Then make sure your individual projects
do not have any references to any packages that they do not actually use.
This helps allow the IDE to load/unload packages on an as-needed basis.

How to you determine which packages are referenced? Up to now I have done this by direct binary editing the project files, when the need arrises. Is there a better way to do this?

Regards
FamerJo
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2014 2:41 PM   in response to: John Farmer in response to: John Farmer
John wrote:

If I understand this correctly, will this result in a greatly reduced
component palette?

Yes, and a more project-oriented palette at that. Each project would be
able to show only the packages that it is actually using. If you need to
add or remove packages, you can do so without affecting other projects.

What would be the bare minimum, could it be determined by simply
by disabling a package and attempt to build the application etc?

Borland standard UI components, for instance.

How to you determine which packages are referenced?

Package references are stored in the BPR/BPK/CPROJ files, which are just
text files you can edit as needed.

Up to now I have done this by direct binary editing the project files

Yes, that it what you have to do, at least for existing projects. For new
projects, once the default setup is in place, the IDE shouldn't be cluttering
the project files with useless references anymore.

--
Remy Lebeau (TeamB)
John Farmer

Posts: 22
Registered: 11/12/10
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 9, 2014 5:42 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Hi Remy,

I have removed all components from the palette as suggested, except the Borland Standard components, but cannot find how you save this as the default configuration for new projects.

I have also managed to do the same with a single project (*.exe) loaded into the IDE. When the project was saved and inspected it appeared to have updated the package lists that it was referencing, so no manual editing of the project was need in this case.

When the project was closed the reduced component palette remained, however, when BCB6 was closed down and reopened the component was back to its fully populated state.

So it looks to me that the component palette keeps the configuration of the last project that was loaded.

How do you save the component palette configuration for subsequent new projects?

Is there a way to clear the entries shown when File|Reopen is selected in BCB6?

Regards
FarmerJo

Remy Lebeau (TeamB) wrote:
John wrote:

If I understand this correctly, will this result in a greatly reduced
component palette?

Yes, and a more project-oriented palette at that. Each project would be
able to show only the packages that it is actually using. If you need to
add or remove packages, you can do so without affecting other projects.

What would be the bare minimum, could it be determined by simply
by disabling a package and attempt to build the application etc?

Borland standard UI components, for instance.

How to you determine which packages are referenced?

Package references are stored in the BPR/BPK/CPROJ files, which are just
text files you can edit as needed.

Up to now I have done this by direct binary editing the project files

Yes, that it what you have to do, at least for existing projects. For new
projects, once the default setup is in place, the IDE shouldn't be cluttering
the project files with useless references anymore.

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 9, 2014 9:06 AM   in response to: John Farmer in response to: John Farmer
John wrote:

I have removed all components from the palette as suggested, except
the Borland Standard components, but cannot find how you save this as
the default configuration for new projects.

In BCB6, when you don't have any projects loaded in the IDE, changes are
automatically saved as the default.

So it looks to me that the component palette keeps the configuration
of the last project that was loaded.

It does not.

--
Remy Lebeau (TeamB)
John Farmer

Posts: 22
Registered: 11/12/10
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 10, 2014 4:14 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
OK. Many thanks.

Regards
FarmerJo
John Farmer

Posts: 22
Registered: 11/12/10
Re: Components disappear from the component palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 10, 2014 4:15 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
OK. Many thanks.

Regards
FarmerJo
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02