none
How to inform user that the Add-In is running or is it done? RRS feed

  • Question

  • Hello,

    In outlook 2007, if not using any msgbox or Form, how to inform user that the Add-In is running or is it done? Can I use StatusBar?

    Thanks in advance.

    Wednesday, February 15, 2017 5:10 AM

Answers

All replies

  • Hello Leon,

    The Outlook object model doesn't provide anything for customizing the status bar in Outlook. However, you may place your own form under the navigation pane where your add-in can display any status or information to a user. For example:

    See Advanced Outlook view and form regions - basic concepts for more information.

    Note, you can inject your own custom form without using Add-in Express, see Creating Adjacent Windows In Outlook . But it requires a deep knowledge and understanding of Windows API.

    Also you may consider using ribbon controls for showing the add-in status - for example, you can change a text/label and icons at runtime dynamically. The Fluent UI provides the IRibbonUI.Invalidate method which allows to invalidate the cached values for all of the controls of the Ribbon user interface.  For each of the callbacks the add-in implements, the responses are cached. For example, if an add-in writer implements the getImage callback procedure for a button, the function is called once, the image loads, and then if the image needs to be updated, the cached image is used instead of recalling the procedure. This process remains in-place until the add-in signals that the cached values are invalid by using the Invalidate method, at which time, the callback procedure is again called and the return response is cached. 

    The Fluent UI (aka Ribbon UI) is described in depth in the following series of articles:

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    • Marked as answer by leon1526 Wednesday, February 15, 2017 10:05 AM
    Wednesday, February 15, 2017 7:46 AM
  • Hi Eugene,

    Thank you for your so much professional, fast reply!

    Wednesday, February 15, 2017 10:06 AM
  • You can use a modeless window (parented to the main Outlook window) where you can display any information without blocking the user.

    You can also use a tray notification to show the user any information without blocking the UI.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, February 15, 2017 8:08 PM