Gürcan YÜCEL
Posts: 52
Joined: 2004-08-16
|
Hi,
Im developing MS Outlook and MS Office addins with D7 Ent+XP+Office 2003 and VCL2.2
Everything work fine. My Outlook add in works fine itself also Word Addin works fine itself. Thanks for the add-in Express.:)
If Im using Word as a Outlook editor, I had a problem. When I launch new email from outlook I had to detect its called from outlook and make invisible word toolbar and If Im opening Word, I had to enable Addin toolbar. Its possible I think but how.? Any idea?
Thanks.
Gürcan YÜCEL |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
Joined: 2004-04-05
|
Hi Gürcan,
When MS Word opens in Outlook there appears a special command bar named "Envelope" (as far as I remember). So detecting the presence or absence of this command bar you can determine where MS Word works.
|
|
Gürcan YÜCEL
Posts: 52
Joined: 2004-08-16
|
Hi Dmitry,
You are as fast as usual. Thanks .:)
I had couple of question to your answer;
1.Is Localization changes the name of the toolbar?
2.How can I itarate the toolbars? Is there any example?
3.If user removed that toolbar, what can I do?
4.I think I had to put this code to activate event of MS Word addin? Is it true? Because user can switch between outlook and MS Word. Is addin loaded once or it loads every time with every document?
5.If answer is yes to q4, is it reasonable to iterate all toolbars when word get activate?
Thanks again.
Gürcan YÜCEL. |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
Joined: 2004-04-05
|
Hi Gürcan,
1. Localization changes the NameLocal property only
2. See the example below
3. Everything you need (leave it as it is or create a command bar anew)
4. You are absolutely right, see the example below
5. It is not reasonable, there is a better way, see the example below
http://www.add-in-express.com/projects/adx-word-with-outlook.zip
|
|
Gürcan YÜCEL
Posts: 52
Joined: 2004-08-16
|
Thanks for the demo.
It works fine.:) |
|