Sorry if I don't quite use the right jargon in this one, but I've got a form added to my addin that I would like to use one of the controls on the Addin Module, but I'm having some trouble referencing it.
For example a normal Application would have a variable declared for the form.. say fMain: TfMain, yet no matter the name of the AddInModule, you never get an AddinModule: TAddInModule as a reference (its been explained to me that while its possible to do this, it won't work when using the addin)
Is there a way to reference back to a component on the AddinModule or do I have to somehow modify the ADX class?
Add-in Express team
If I understand you right, it is possible. See the piece of code below.
TAddInModule = class(TadxCOMAddInModule)
procedure adxCOMAddInModuleAddInInitialize(Sender: TObject);
procedure adxCOMAddInModuleAddInFinalize(Sender: TObject);
procedure TAddInModule.adxCOMAddInModuleAddInInitialize(Sender: TObject);
[B]adxModule := Self;[/B]
procedure TAddInModule.adxCOMAddInModuleAddInFinalize(Sender: TObject);
[B]adxModule := nil;[/B]
If I missed anything, please let me know.