Edward Diener Guest
|
Posted: Thu Aug 14, 2003 4:43 pm Post subject: Registering property editors in BCB6 |
|
|
I am registering four property editors in BCB6. These all were working in
BCB3, BCB4, and BCB5 but in BCB6 three out of the four are not working. I
know that BCB6 changed the design editor editor file names, and I am picking
up the latest ones, but I am wondering if anything else changed to
circumvent property editors somehow, or if there is a known bug on the
issue. I couldn't find anything about it in QC.
Here is a sample:
First a property for double.
class PACKAGE DoublePropertyType : public System::TObject
{
__published:
__property double DoubleProperty = {read = DDummy, write = DDummy };
private:
inline __fastcall DoublePropertyType() {}
double DDummy;
};
Then two property editors using the above.
RegisterPropertyEditor(*(Typinfo::GetPropInfo(__typeinfo(DoublePropertyType)
,"DoubleProperty") -> PropType),
__classid(ANamespace::AComponent),"Minimum",__classid(MinMaxPropertyEditor))
;
RegisterPropertyEditor(*(Typinfo::GetPropInfo(__typeinfo(DoublePropertyType)
,"DoubleProperty") -> PropType),
__classid(ANamespace::AComponent),"Maximum",__classid(MinMaxPropertyEditor))
;
The final one is for a text field:
RegisterPropertyEditor(*(Typinfo::GetPropInfo(__typeinfo(TEdit),"Text") ->
PropType),
__classid(ANamespace::ATPersistentClass),"Grouping",__classid
GroupingPropertyEditor));
I have checked that the RegistryPropertyEditor gets called but when I am
trying to edit ANamespace::AComponent's Minimum or Maximum property, the
routines for MinMaxPropertyEditor never get called. Similarly the routines
for GroupingPropertyEditor never get called when I am trying to edit the
ANamespace::ATPersistentClass object's Grouping property which is embedded
in one of my components.
Any ideas or thought why this is not working ?
|
|