Handling Events in Outlook Options Page

Add-in Express™ Support Service
That's what is more important than anything else

Handling Events in Outlook Options Page
 
Myles Wakeham




Posts: 42
Joined: 2005-05-11
I am just starting out with Add-In Express for Delphi VCL (in Delphi 7) and I have an Outlook Add-In working for Outlook 2003 Professional. The only thing I can't seem to see an easy mechanism to handle is the Outlook Options page.

I have added a Tab to the Outlook Options page, but there is no obvious way that I can see to handle any form of event to capture when the page is made active, and when the OK button is pressed to 'save' the options. I am using the registry to save some values and I wanted to be sure that the user wants to save any changes by clicking OK in that form, and also to load up the initial values set in the registry to this page.

What is the best way to handle this? What events should I be coding for? Are there any examples of this around I can take a look at?

Thanks
Myles
Posted 11 May, 2005 11:50:49 Top
Dmitry Kostochko


Add-in Express team


Posts: 2742
Joined: 2004-04-05
Hi Myles,

You can handle the OnCreate event and add some code to the Apply method of your option page. See a little example:
http://www.add-in-express.com/projects/adx-ol-option-page-params.zip

Posted 11 May, 2005 13:13:02 Top
Myles Wakeham


Guest


Thanks so much. I got it working!

Myles
Posted 16 May, 2005 17:57:15 Top