Synchronize Instances

Add-in Express™ Support Service
That's what is more important than anything else

Synchronize Instances
 
Harald Holzmann




Posts: 39
Joined: 2017-08-08
Hello,

I have some problems implementing the messaging between instances of the toolbar. What is exactly needed?

In my Toolbar i do:
this.SendMessageToAll(MY_MESSAGE, IntPtr.Zero, IntPtr.Zero);


And in my module i have added the following:

this.OnSendMessage += new AddinExpress.IE.ADXIESendMessage_EventHandler(this.MessageSend);
and
        private void MessageSend(ADXIESendMessageEventArgs e)
        {
            MessageBox.Show("received");
        }


But the event never got called and the message box is not shown. Need your advice/help please!

Thanks,
Harald
Posted 10 Oct, 2017 07:35:23 Top
Harald Holzmann




Posts: 39
Joined: 2017-08-08
Hello,

oh the MessageSend is only available in the toolbar, why not in the module too? That was my mistake.

Thanks,
Harald
Posted 10 Oct, 2017 08:06:46 Top
Harald Holzmann




Posts: 39
Joined: 2017-08-08
Hello again,

after further investigations, I have to say, that the sendMessageToAll is only working in the Toolbar and not in the module. Is that correct?
Posted 10 Oct, 2017 08:14:00 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Harald,

This is correct. Calling ADXIEToolbar.SendMessageToAll will deliver the message to ADXIEToolbar instances. Calling ADXIEModule.SendMessageToAll will deliver the message to ADXIEModule instances.


Andrei Smolin
Add-in Express Team Leader
Posted 11 Oct, 2017 06:01:07 Top