• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Visual Studio Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Download
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Visual Studio Developer Center > Visual Studio Forums > Visual Studio Tools for Office > GetFormRegionIcon isn't called since I have changed the formRegionType to adjoining
Ask a questionAsk a question
Search Forums:
  • Search Visual Studio Tools for Office Forum Search Visual Studio Tools for Office Forum
  • Search All Visual Studio Forums Search All Visual Studio Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerGetFormRegionIcon isn't called since I have changed the formRegionType to adjoining

  • Tuesday, September 25, 2007 3:19 PMRaul Rosenloecher Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Hi,

    I have written a FormRegion addin for Outlook (VSTO 2005 SE). It had been working as I expected, but then I change the formRegionType from "replace" to "adjoining" in the manifest. Now GetFormRegionIcon isn't called any more and Outlook doesn't show the my custom icon. What's going wrong? Is this a bug? I only have to change formRegionType...

    Thanks, Raul

    • ReplyReply
    • QuoteQuote
     

Answers

  • Tuesday, September 25, 2007 3:31 PMSue Mosher - Outlook MVPMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Adjoining regions appear on the surface of an existing form page and, therefore, don't use icons. Icons apply only to replace and replaceAll regions.

    • ReplyReply
    • QuoteQuote
     
  • Thursday, September 27, 2007 2:20 PMRaul Rosenloecher Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0
    Thank, Sue.

    But actually, there is a solution and it's working. I have to register 2 FormRegions. One is only for the icon and one is for the form - declared as adjoining and without any entry for the icon in the manifest:
    ...
      <exactMessageClass>true</exactMessageClass>
      <formRegionType>adjoining</formRegionType>
      <showInspectorCompose>false</showInspectorCompose>
      <showInspectorRead>true</showInspectorRead>
      <showReadingPane>false</showReadingPane>

    ...

    2. For showing the icon: a "form region" without a form but with a manifest for the icons and as replaceAll
      <exactMessageClass>true</exactMessageClass> 
      <formRegionType>replaceAll</formRegionType> 
      <showInspectorRead>false</showInspectorRead>
      <showReadingPane>false</showReadingPane>
      <showInspectorCompose>false</showInspectorCompose> 
      <icons>
        <default>addin</default>
        <read>addin</read>
        <unread>addin</unread>
        <replied>addin</replied>
        <forwarded>addin</forwarded>
        <unsent>addin</unsent>
        <submitted>addin</submitted>
        <signed>addin</signed>
        <encrypted>addin</encrypted>
        <window>addin</window>
        <recurring>addin</recurring>
        <page>addin</page>
      </icons>

    Regards Raul
    • ReplyReply
    • QuoteQuote
     

All Replies

  • Thursday, September 27, 2007 2:33 PMSue Mosher - Outlook MVPMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Brilliant! A typical, sneaky Outlook solution. Looking at your manifest, I presume that there is a specific IPM.Note.Something MessageClass involved?

    • ReplyReply
    • QuoteQuote
     
  • Thursday, September 27, 2007 2:36 PMRaul Rosenloecher Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Yes, of course. Both form regions are registered (registry) for the same message class.
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement