MAPI.Kit for Delphi -- Example #23: Outlook forms: modal or non-modal -- source code
====================================================================================

One mail client, both ways of showing Outlook's own forms, chosen with a radio button. Modal:
TMAPISession.ShowForm shows the form and returns when the user closes it -- simple, one form at a
time. Non-modal: TMAPIFormManager returns at once, several forms stay open side by side, and they
report back through events. Both work for every kind of item, and "New item" creates an item of the
kind of the selected folder.

This archive holds only the files of the example (MAPIKit.Examples\3-Advanced\23-FormModes). The
MAPI.Kit library, the shared units of the examples (MAPIKit.Examples\Common) and TestData come with
the MAPI.Kit DCU edition for your Delphi version, a free download: https://imibo.com/mapi-kit/#dcu

Extract this archive into the folder that holds MAPIKit.Examples of the DCU edition (the paths in
the archive start with MAPIKit.Examples\), then open FormModes.dproj.

Delphi: Delphi 10.3 Rio .. Delphi 13 Florence (Win32 and Win64).
The programs are written to .\OUT\<platform>\<config>.

Test data: without a .pst file or a MAPI profile the program works on a copy of the examples' test
store, a small .pst file with sample mail, appointments, contacts, tasks and notes. When the test
store does not exist yet, it is created automatically the first time (it takes a few seconds): in
TestData\TestStore.pst of the MAPIKit.Examples folder, or in %TEMP%\MAPIKit.Examples\TestData when
the program runs on its own. Each run works on a fresh copy in %TEMP%\MAPIKit.Examples, so the test
store itself is never changed.

Description and source code excerpts: https://imibo.com/mapi-kit-examples/advanced/mapikit-example-23/
Copyright (C) 1992-2026 IMIBO. All rights reserved. https://imibo.com
