Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:11:31+00:00 2026-06-18T09:11:31+00:00

Information I seem absolutely clueless as to how I should manage my component packages

  • 0

Information

I seem absolutely clueless as to how I should manage my component packages and install custom property editors. I have spent the last week or so looking at examples and tutorials, I must clearly be doing something wrong as my property editors never show up in the Object Inspector and I require step by step instructions to try and solve this frustration.

Component Package

I currently have one package, and it is set to designtime and runtime in the options. Added to this package are the units to my components (ie, MyButton, MyListBox etc) – Additionally I have a unit containing the RegisterComponents procedure. I can build and install this now, add my components to a new project and run them without any problems.

Adding a custom PropertyEditor

It gets tricky and confusing for me now that I want to introduce a property editor to my components from the package above.

TMyButton for example is a custom button with my own paint methods, it already has published properties to allow changing the appearance of the button – In addition there is also a published list to allow selecting preset appearance settings, example:

TMyButtonStyle = (bsStyle1, bsStyle2, bsStyle3)

I want to take away the list of preset styles and instead add a property to the Object Inspector called ‘PresetStyles’. This property will be of paDialog, I want to a show a form where I can visually see the different button styles – a more graphical way of selecting a preset style then from a simple list.

Which packages do I need

If I understand, you need to split designtime packages and runtime packages?

Does this mean I need two register units, one for the components and one for the Property Editors?

I am not full sure how to manage this, as I said my current package is designtime and runtime, I am not sure what package type I should split it into. If I make a new designtime package for the Property Editors, and make the other package runtime only I lose the install button. Even writing this now is confusing me.

Installing the PropertyEditor

One of the articles I tried following was one from this page: http://www.delphisources.ru/pages/faq/master-delphi-7/content/LiB0097.html

The only thing I changed was add my own dialog form, and change the register code from:

RegisterPropertyEditor(TypeInfo(string), TMdSoundButton, 'SoundUp', TSoundProperty);

to

RegisterPropertyEditor(TypeInfo(string), TMyButton, 'PresetStyles', TSoundProperty);

I know it still says TSoundProperty, I just left it like that until I could get it working then I would change the class name.

Conclusion

What is the correct way of splitting/managing packages between actual components and the design side ie PropertyEditors?

The PropertyEditor never appears on TMyButton in the Object Inspector and I have a feeling it must be something to do with not configuring the packages correctly or something.

I would really appreciate some kind of assistance here, even a link to a really good tutorial guide or something as nothing I am doing seems to work, even using a lot of the examples are not working for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:11:32+00:00Added an answer on June 18, 2026 at 9:11 am

    I currently have one package, and it is set to designtime and runtime in the options.

    To implement custom property/component editors, you MUST separate your code into two packages – one runtime only package containing just the implementation code for the components themselves, and one designtime only package that contains just the implementation code for the component registrations and custom editor(s). The designtime package needs to specify the runtime package, and the designide package, in its Requires list. The runtime package is what gets compiled into executables. The designtime package is what the IDE uses to get your components to appear in the Component Palette and Form Designer and interact with them.

    Does this mean I need two register units, one for the components and one for the Property Editors?

    No. The runtime package should have no registrations at all. That belongs in the designtime package instead. You can have a single Register() function in the designtime package that registers everything.

    If I make a new designtime package for the Property Editors, and make the other package runtime only I lose the install button.

    You cannot install a runtime package into the IDE, only a designtime package.

    One of the articles I tried following was one from this page: http://www.delphisources.ru/pages/faq/master-delphi-7/content/LiB0097.html

    The only thing I changed was add my own dialog form, and change the register code from:

    RegisterPropertyEditor(TypeInfo(string), TMdSoundButton, ‘SoundUp’, TSoundProperty);

    to

    RegisterPropertyEditor(TypeInfo(string), TMyButton, ‘PresetStyles’, TSoundProperty);

    Does your TMyButton component actually define a PresetStyles property that is a String type? You cannot define a property editor for a property that does not exist.

    Without knowing exactly how your PresetStyles property is implemented in the component itself and what it represents, it probably does not make much sense to invoke a popup Dialog for a String property (except maybe for things like filenames and such). Based on your description, it probably makes more sense to implement a component editor instead of a property editor, and leave your existing TMyButtonStyle property alone to use the IDE’s default editor for enum properties. To invoke your popup dialog, the component editor would allow the user to right-click on the component itself and choose “Edit” (or whatever other string value you decide to name it) from the popup menu, or just double-click on the component, in the Form Designer. You can then display and edit the component as desired, and assign any changes to the component when the dialog is closed.

    The PropertyEditor never appears on TMyButton in the Object Inspector and I have a feeling it must be something to do with not configuring the packages correctly or something.

    It is hard to know for sure since you did not show any of your actual code yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to find any information on what should be a simple issue.
The documentation for the OS module does not seem to have information about how
Hi I have been searching online for information about this but can't seem to
Can't seem to find the following information although I'm pretty sure this should be
An obscure puzzle, but it's driving me absolutely nuts: I'm creating a custom Information
I can't seem to find this information in other questions, even though I think
I can’t seem to find information on that on perforce’s website, nor on the
The documentation of the ListView control (using WinApi) seem to lack some basic information,
Trying to read an RSS and select information using Linq but can't seem to
I am new to Scala, and I cannot seem to find this information. Currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.