Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Object Inspector: Changing prop value list on component selection

edited October 2010 in End User
D7 RB11.06

Is there an easy way to clear/fill the value list of a specific property
(in Object Inspector) in dependence of the selected component?

I need to assure that a specific component is in a specific region, that
means, when you drag&drop the component into a region, the property
should first check, if the component is dropped into a region, and if
so, then the value list for the property needs to be updated...
otherwise, if the component is dropped outside a region, the value list
needs to be cleared.

Hope it's clear what I'm trying to achieve.

Any ideas on this?

Thanks in advance.

Nico

Comments

  • edited October 2010
    You can define custom PropertyEditors and register them to handle specific
    properties. For examples, check out RBuilder\Source\ppInspector.pas. Search
    for GetValueList, there are several PropertyEditor classes we define that
    override that method to build various value lists. See the unit
    Initialization section for examples of registering a PropertyEditors.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.