Unfortunately not. Apologies - my example code is wrong (and I'll see if I can edit it now), but I didn't make that mistake in the real code in my application.
Many thanks for your suggestion.
Peter
Main Topics
Browse All TopicsI'm trying to add an object of class TCategoryPanel to a CategoryPanelGroup at runtime. I'd like to copy an existing CategoryPanel, which already belongs to the group (and was created statically).
I can create the new panel, by calling the create method for the CategoryPanelGroup, and assigning its returned value to myNewPanel.
However, when I try something like this:
myNewPanel.Assign(myExisti
I get the following error:
--------------------------
Debugger Exception Notification
--------------------------
Project Harps1.exe raised exception class EConvertError with message 'Cannot assign a TCategoryPanelActions to a TCategoryPanel'.
--------------------------
I can't find a reference to a thing of type "TCategoryPanelActions", and - as I'm still something of a novice - I'm stumped.
Please help. Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Geert,
Right! I've run your test program, and it does exactly what I've been looking for. Thank you again.
I shall now try to modify and incorporate (read: shamelessly plagiarise) your code in my app. I'll let you know how I get on.
On a related topic, to use the code you supplied, I created a new form, and pasted/edited your Ascii version of its .dfm file. This worked fine, but I notice now that, if I want to modify /some/ aspects of it (e.g. the event handler for an OnClick event), making changes using the Object Inspector has no effect - I have to modify the ascii .dfm text. Is this to be expected? (I did warn you that I was a novice.)
Clearly, my last question is outside the scope of the original one, so If I'm being a bit naughty asking it here, just say so, and I'll be very happy to create a new question.
Yet again, thank you very much for taking the trouble - not just to answer my question - but even to write example code. I'm very grateful to you.
Best wishes,
Peter
lol,
>>I did warn you that I was a novice
There is nothing wrong with being a beginner at something.
It makes it easier to help if this is known.
To edit a dfm file, from the IDE: Right click on the form, make sure the "Text dfm" is checked, then click
"View as text"
this will convert the visual form to the text version
it is not actually necessary to edit the text like this, the editor does a fine job,
but sometimes it needs a little help (very little actually)
to go back, right click in the text editor, click on "View as Form"
or to swap between both: "ALT-F12"
this is ok for minor tweaking
Business Accounts
Answer for Membership
by: SteveBayPosted on 2009-08-10 at 11:14:08ID: 25062438
Could it be a simple as: Panel) ngPanel);
newPanel.Assign(myExisting
should be:
MyNewPanel.Assign(myExisti
Might this be a simple syntax error?