BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BCB6 Component Palette.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Scott Kent-Collins
Guest





PostPosted: Sun Jan 18, 2004 11:43 pm    Post subject: BCB6 Component Palette. Reply with quote



In Builder 6 I created a custom frame component that has 3 other components
on the frame and then added it to my component palete by Right Clicking on
my frame and selecting "Add to Palette". I selected a Component Name, say
"MyComponent1", and added it to the Samples palette page. I then removed
this component from the component palette by selecting Component->Component
Palette... to bring up the Palette Properties dialog box and deleted
"MyComponent1" from the Samples page.

All of the above worked fine but my problem is now when I go to add the same
component back to the Palette I get the following message: "A component with
this name already exists" . I have checked through all of the palatte pages
and can't find any reference to the component and I also can't find it
referenced in any files.

Does anyone know if there is a file I can edit or another way to remove all
references to "MyComponent1" so I can add it back in again? I need to add
it back in as the same name and don't want to give it a new name.

Thanks
SKC


Back to top
Yu-Chen Hsueh
Guest





PostPosted: Mon Jan 19, 2004 3:55 pm    Post subject: Re: BCB6 Component Palette. Reply with quote



Scott,

Go to Component | Install Packages... and see if your component package is
still installed. It sounds like maybe you removed the component from the
palette, but it's package is still there.

-- YH --


--
Any e-mail sent to me from the newsgroups will be ignored. Please confine
your posts to the newsgroups and DO NOT reply to this e-mail account.


Back to top
Marcelo R. Lopez, Jr.
Guest





PostPosted: Mon Jan 19, 2004 6:45 pm    Post subject: Re: BCB6 Component Palette. Reply with quote



Yu-Chen,

Hi...I thought perhaps you might be the right person to answer this
question.
I need to create a simple "configuration" reader using an XML file as the
source. I know technically how to do it, but according to the documentation
the "TXMLDocument" design time object should be on my "Internet" tab, and it
isn't, I've looked at all my DCL*.bpls and I can find any that has it. I'm
using the Professional Level of BCB6. Please don't tell me that those
features are only available in the Enterprise ? :(

Thanks,

Marcelo
"Yu-Chen Hsueh" <ychsueh (AT) borland (DOT) com> wrote

Quote:
Scott,

Go to Component | Install Packages... and see if your component package is
still installed. It sounds like maybe you removed the component from the
palette, but it's package is still there.

-- YH --


--
Any e-mail sent to me from the newsgroups will be ignored. Please confine
your posts to the newsgroups and DO NOT reply to this e-mail account.





Back to top
Scott Kent-Collins
Guest





PostPosted: Mon Jan 19, 2004 10:33 pm    Post subject: Re: BCB6 Component Palette. Reply with quote

AFAIK it doesn't belong to any package or if it is it looks like it is added
to a package called "[Template]". When the component is installed if I open
up the Palette Properties dialog and find my component it lists the package
as being "[Template]" but this 'package' is available in the
Component|Install Packages.

I know that these components are referenced in the file "...Builder
6BinC++ Builder.dct" and I have tried replacing this file with the
original file (so the component isn't added) but this doesn't fix it.

I have ran out of ides. Sad
Cheers
SKC

"Yu-Chen Hsueh" <ychsueh (AT) borland (DOT) com> wrote

Quote:
Scott,

Go to Component | Install Packages... and see if your component package is
still installed. It sounds like maybe you removed the component from the
palette, but it's package is still there.

-- YH --



Back to top
Yu-Chen Hsueh
Guest





PostPosted: Mon Jan 19, 2004 11:45 pm    Post subject: Re: BCB6 Component Palette. Reply with quote

Scott,

How did you originally install the component? And how did you remove it? I
know you've already gone over this in your original post, but I just want to
make sure I'm understanding everything correctly. Tell me some more about
what you clicked on, and I'll see if there's something I missed the first
time around.

What I think is happening, based on the information at hand, is that you're
only deleting the component from the palette. You're not actually
uninstalling the component from C++Builder. When you go to Component |
Configure Palette... and delete the component, that only removes it from the
palette; the component itself is still registered, which will lead to the
error you mentioned when attempting to reinstall it.

Assuming that this is what's happening, you have a couple of options...

One option is to remove the entire .BPL package that the component is a part
of, and reinstall it. You can do this through the Component | Install
Packages... menu.

Since this is your own package and component, another option is to reinstall
it via Component | Install Component...

If none of this helps, then please post here and we'll see what else can be
done.

-- YH --


--
Any e-mail sent to me from the newsgroups will be ignored. Please confine
your posts to the newsgroups and DO NOT reply to this e-mail account.


Back to top
Scott Kent-Collins
Guest





PostPosted: Tue Jan 20, 2004 3:27 am    Post subject: Re: BCB6 Component Palette. Reply with quote

Hi Yu,

Thanks for the help thus far I will detail exactly what I have done.

First thing to note is that this is a TFrame component with a few other
components placed on the TFrame. I have followed the BCB User Guide as to
how to use TFrames.

1) I open up my TFrame component file (this uses a CPP file called
"fmeListSelector.cpp").
2) I right click on the TFrame component to bring up the Pop-Up Menu.
3) I selected "Add To Palette", which opens up the 'Component Template
Information' dialog box.
4) I enter in a Component Name, select the Palette Page and Palette Icon (I
leave as the default).
5) Click OK.
6) Now the first time (with a unique Component Name) it adds this in no
problems to the Component Palette (normally to the Samples page).
7) If I goto the Component| Configure Palette to the Palette Properties
dialog and go down to the Samples page I can see my TFrame component listed
in there belonging to a package called '[Template]'.
Cool Previously when I have tried deleting it I have deleted the component
from the above section in point (7).
9) If I goto Component|Install Packages I can't find any package that
references the '[Template]' package from point (7).
10) Now if I delete the component from point (7) and reopen the TFrame
component file and try adding it back in following the above steps I get the
error "A component with this name already exists" when I try point (5).


I hope this helps make things clearer.
Scott


Back to top
Yu-Chen Hsueh
Guest





PostPosted: Wed Jan 21, 2004 11:16 pm    Post subject: Re: BCB6 Component Palette. Reply with quote

Scott,

I've never seen the [Template] reference before, so I'm afraid I don't know
what that implicates. The only thing I can think of is maybe your component
was added to the user component package. Try opening DCLUSR.BPK (found in
the Lib directory) and see if your component's .CPP file is part of that
package project. If so, then build and install the package once more.

If this doesn't help, then post back here. By the way, is your component
confidential? Is it something you can send me to look at? If so, then let
me know, and I'll send you my contact info. This should be a lot easier to
troubleshoot if I could get some hands-on time with it.

-- YH --


--
Any e-mail sent to me from the newsgroups will be ignored. Please confine
your posts to the newsgroups and DO NOT reply to this e-mail account.


Back to top
Scott Kent-Collins
Guest





PostPosted: Thu Jan 22, 2004 3:39 am    Post subject: Re: BCB6 Component Palette. Reply with quote

Hi,

I have check in the DCLUSR.BPK and it is not part of that package. No the
component is not really confidential and I can easily send it to you if you
wish.

Thanks again for your help.
SKC





"Yu-Chen Hsueh" <ychsueh (AT) borland (DOT) com> wrote

Quote:
Scott,

I've never seen the [Template] reference before, so I'm afraid I don't
know
what that implicates. The only thing I can think of is maybe your
component
was added to the user component package. Try opening DCLUSR.BPK (found in
the Lib directory) and see if your component's .CPP file is part of that
package project. If so, then build and install the package once more.

If this doesn't help, then post back here. By the way, is your component
confidential? Is it something you can send me to look at? If so, then
let
me know, and I'll send you my contact info. This should be a lot easier
to
troubleshoot if I could get some hands-on time with it.

-- YH --


--
Any e-mail sent to me from the newsgroups will be ignored. Please confine
your posts to the newsgroups and DO NOT reply to this e-mail account.





Back to top
Yu-Chen Hsueh
Guest





PostPosted: Fri Jan 23, 2004 1:01 am    Post subject: Re: BCB6 Component Palette. Reply with quote

Scott,

I looked at your component, and it's not actually a component. It's a
template, which is basically a simplified component that doesn't implement
any of its own code. To create a component, you need to create a package.

The behavior on my system, however, was different from what you described.
After I go to Component | Configure Palette... and delete the template, I am
able to reinstall it without problems. In other words, after step #3 in
your instructions, I am able to perform step #1 again without issue. Can
you try this once more? This should be the correct behavior, as I tried it
on several machines.

Again, if you want this to be a component, then you need to create a package
project (.BPK file). You can then build it into a .BPL file, and the
control will be installed into the component palette as an actual component.

-- YH --


--
Any e-mail sent to me from the newsgroups will be ignored. Please confine
your posts to the newsgroups and DO NOT reply to this e-mail account.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.