How to create custom bar in mail when i do "reply" or "new"

S

sylvain

I want to create a custom bar in new mail or "reply" to a email. I try to
use Inspector wrapper but i cannot set my command bar visible.
I saw that i could these instrution :
idWordEditor.Application.CustomizationContext := idWordEditor
but my problem to be unsolved.
Somebody can help me !!

Tanks
Sylvain
 
K

Ken Slovak - [MVP - Outlook]

Setting CustomizationContext only determines where a toolbar or menu will be
added to the Word customizations. Normally CustomizationContext is set to
Normal.dot.

You need to add your toolbar and then find it and enable it and make it
visible so it will show up in WordMail.
 
S

sylvain

Thank you for your answer,

My commandbar is visible but my button is not available . However when i
"double click" on un email , my commanbar and my button use normally.
I dont understand how run Wordmail ? if i add my toolbar why have i do
"find it" and "visible" in Wordmail ?

Tanks
 
K

Ken Slovak - [MVP - Outlook]

Because WordMail is actually Word.exe subclassed into working as the Outlook
editor. Although you can add the buttons/toolbars to the Inspector they're
really being added somewhere in Word. That's why working with
CustomizationContext is necessary.

I find it's not only necessary to make my toolbars visible and enabled but
also to make my buttons visible and enabled, and to re-instantiate them each
time I want to work with one of their properties. I usually use a
combination of Inspector.Activate and Word.Window_Activate to see what's
being activated and to compare my mail window to a Word window to see what
actions to take with my UI. Don't forget, the user can have Word docs open
as well as WordMail items.

If you don't want your UI permanently added to Word and to have it show when
a document is being worked with you have to selectively enable/disable your
UI as needed. Word.Window.EnvelopeVisible = True tells you the active window
in Word is an email window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top