A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook::ExplorerEvents::SelectionChange()



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 8th 09, 09:57 PM posted to microsoft.public.outlook.program_addins
John Erickson[_2_]
external usenet poster
 
Posts: 27
Default Outlook::ExplorerEvents::SelectionChange()

I'm adding a custom form region for Outlook 2007 and it's working great.
Since Outlook 2003 and below doesn't support form regions I am planning on
popping up a modal dialog box to accomplish the same thing that my custom
form region does for 2007. I was hoping to use the
Outlook::ExplorerEvents::SelectionChange() event to pop the modal dialog box.
However, at the time this event is triggered, the reading pane hasn't been
displayed yet. It's empty. I can't seem to find an event that fits that
timeframe. I want the reading pane to be done painting so that my user can
see it's contents while he is answering the question in my dialog box. My
alternative is to make the popup modeless, but I'd prefer not to do that. The
modeless dialog(s) may get lost and forgotten behind some other window and
I'd have to deal with multiple occurences of them, etc... Is there an event
I'm missing that would trigger after the reading pane is done displaying the
contents of a new selection?
Ads
  #2  
Old August 9th 09, 04:37 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Outlook::ExplorerEvents::SelectionChange()

You can use a timer: activate thetimer in the SelectionChange event handler,
then handle the Timer event later when it fires up.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"John Erickson" wrote in message
...
I'm adding a custom form region for Outlook 2007 and it's working great.
Since Outlook 2003 and below doesn't support form regions I am planning on
popping up a modal dialog box to accomplish the same thing that my custom
form region does for 2007. I was hoping to use the
Outlook::ExplorerEvents::SelectionChange() event to pop the modal dialog
box.
However, at the time this event is triggered, the reading pane hasn't been
displayed yet. It's empty. I can't seem to find an event that fits that
timeframe. I want the reading pane to be done painting so that my user can
see it's contents while he is answering the question in my dialog box. My
alternative is to make the popup modeless, but I'd prefer not to do that.
The
modeless dialog(s) may get lost and forgotten behind some other window and
I'd have to deal with multiple occurences of them, etc... Is there an
event
I'm missing that would trigger after the reading pane is done displaying
the
contents of a new selection?



  #3  
Old August 10th 09, 04:40 AM posted to microsoft.public.outlook.program_addins
John Erickson[_2_]
external usenet poster
 
Posts: 27
Default Outlook::ExplorerEvents::SelectionChange()

If you're referring to SetTimer and then reacting to the WM_TIMER message,
then I would have to sublass Outlook's window to catch the message.
Subclassing their window is something I'm trying to avoid. Not because it's
difficult, but because I want to be as friendly to Outlook as possible. Plus
I would still have issues with what do I do if another selection change
occurs. It could be possible to make another selection before the timer went
off. Dealing with all that may be more trouble than just making it modeless.
I have to deal with selection changes while I'm modeless, but I don't have to
deal with the timer and the subclassing.

"Dmitry Streblechenko" wrote:

You can use a timer: activate thetimer in the SelectionChange event handler,
then handle the Timer event later when it fires up.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"John Erickson" wrote in message
...
I'm adding a custom form region for Outlook 2007 and it's working great.
Since Outlook 2003 and below doesn't support form regions I am planning on
popping up a modal dialog box to accomplish the same thing that my custom
form region does for 2007. I was hoping to use the
Outlook::ExplorerEvents::SelectionChange() event to pop the modal dialog
box.
However, at the time this event is triggered, the reading pane hasn't been
displayed yet. It's empty. I can't seem to find an event that fits that
timeframe. I want the reading pane to be done painting so that my user can
see it's contents while he is answering the question in my dialog box. My
alternative is to make the popup modeless, but I'd prefer not to do that.
The
modeless dialog(s) may get lost and forgotten behind some other window and
I'd have to deal with multiple occurences of them, etc... Is there an
event
I'm missing that would trigger after the reading pane is done displaying
the
contents of a new selection?




  #4  
Old August 10th 09, 02:49 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook::ExplorerEvents::SelectionChange()

Just a system timer, set that and when it fires you have the event to handle
displaying your dialog. As long as the timer runs on the main thread there
should be no problems.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"John Erickson" wrote in message
...
If you're referring to SetTimer and then reacting to the WM_TIMER message,
then I would have to sublass Outlook's window to catch the message.
Subclassing their window is something I'm trying to avoid. Not because
it's
difficult, but because I want to be as friendly to Outlook as possible.
Plus
I would still have issues with what do I do if another selection change
occurs. It could be possible to make another selection before the timer
went
off. Dealing with all that may be more trouble than just making it
modeless.
I have to deal with selection changes while I'm modeless, but I don't have
to
deal with the timer and the subclassing.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Explorer.SelectionChange event triggered multiple times Dorian Add-ins for Outlook 9 September 18th 08 06:07 PM
SelectionChange event in Outlook 2007 calendar Marcin Add-ins for Outlook 5 April 21st 08 09:35 AM
selectionchange event for inspector? jiun Outlook and VBA 1 January 2nd 07 06:35 AM
SelectionChange Event in Outlook Calender lg Add-ins for Outlook 6 October 4th 06 03:09 PM
SelectionChange Event A. Blundon Outlook and VBA 2 February 27th 06 07:52 PM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.