Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

How do I convert TPresentationProxyFactory.Current.Register to C++ Builder

$
0
0

I am trying to subclass TCustomEdit __fastcall TAltorFMXEdit::TAltorFMXEdit(TComponent* Owner)    : TCustomEdit(Owner) I have added : __fastcall TStyledAltorEdit::TStyledAltorEdit(TComponent* Owner){}

//---------------------------------------------------------------------------

__fastcall TStyledAltorEdit::~TStyledAltorEdit()

System::TObject* __fastcall TStyleAltorEditProxy::CreateReceiver(void){return new  TStyledAltorEdit(NULL);}

Now I believe I need to register TStyleAltorEditProxy

In delphi: initialization  RegisterAliases;  TPresentationProxyFactory.Current.Register(TEdit, TControlType.Styled, TStyledPresentationProxy);

finalization  TPresentationProxyFactory.Current.Unregister(TEdit, TControlType.Styled, TStyledPresentationProxy);  UnregisterAliases;end.

Question? How and where do I register and unregister in C++ Builder Berlin Update 1. Al.


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>