Object Inspector - Two correspondent property names
Hi
D7, RB 11.06 (atm no chance to upgrade)
The TppBarCode has a property called 'Orientation' which is in the
category 'BarCode' in Object Inspector. We have added own components/own
properties to the RB assortment. One of our components has a property
called 'Orientation', too.
So this is automatically set to the category 'BarCode' aswell, though
this component has nothing to do with a BarCode at all.
Is this a bug? All of our other properties are in category
'Miscellaneous'. Or is it because it isn't set to another category, yet?
Skål.
D7, RB 11.06 (atm no chance to upgrade)
The TppBarCode has a property called 'Orientation' which is in the
category 'BarCode' in Object Inspector. We have added own components/own
properties to the RB assortment. One of our components has a property
called 'Orientation', too.
So this is automatically set to the category 'BarCode' aswell, though
this component has nothing to do with a BarCode at all.
Is this a bug? All of our other properties are in category
'Miscellaneous'. Or is it because it isn't set to another category, yet?
Skål.
This discussion has been closed.
Comments
"Orientation" is a reserved property in the inspector. You can see where it
is assigned to a category in the ppInspector.pas file. If you would like to
use this with a different category you will need to either alter the RB
source or use a different property name.
Going forward hope you will be upgrading to RB 12, which includes many
powerful new features.
Here is a link to What's New for RB 12. (Use the side menu to navigate to
more detail).
http://www.digital-metaphors.com/rbWiki/General/What's_New/RB_12
Also note that we have launched rbWiki, a great RB 'How To' resource that
contains hundreds of tech tips and downloadable code examples.
http://www.digital-metaphors.com/rbWiki
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I see... I suggest you to change the logic that it is possible to
register property names belonging to specific classes, like:
lCategory.PropertyNames.Add('TppBarCode.Orientation');
or give another parameter 'ObjectClass', like:
lCategory.PropertyNames.Add('Orientation',TppBarCode);
something like this. I think you will need a different logic in future.
The longer the more you will need to reserve more and more general
property names (I think 'Orientation' is already kinda general), what
will drive the people crazy, which are writing own components/properties
for RB.
Is something similar planned for the future?
And yep, we will be upgrading to RB 12 as soon as we upgraded to 11.06
successfully. We altered a lot of code in RB 5.05, and now we do a huge
job migrating to 11.06, trying to get rid of most of the changes.
Skål!
Thanks for the feedback. We will consider changing the inspector logic to
allow more specific categories for a later release.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com