Object Inspector: Changing prop value list on component selection
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
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
This discussion has been closed.
Comments
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