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

  • Thread starter Thread starter sylvain
  • Start date Start date
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
 
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.
 
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
 
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.
 
Back
Top