Cообщество разработчиков на платформе Microsoft > Форумы > Visual Studio Tools for Office > GetFormRegionIcon isn't called since I have changed the formRegionType to adjoining
Задайте вопросЗадайте вопрос
 

ОтвеченоGetFormRegionIcon isn't called since I have changed the formRegionType to adjoining

Ответы

  • 25 сентября 2007 г. 15:31Sue Mosher - Outlook MVPMVP, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено

    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.

  • 27 сентября 2007 г. 14:20Raul Rosenloecher Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    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

Все ответы