BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Registering property editors in BCB6

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Edward Diener
Guest





PostPosted: Thu Aug 14, 2003 4:43 pm    Post subject: Registering property editors in BCB6 Reply with quote



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 ?


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.