Outlook::ExplorerEvents::SelectionChange()

  • Thread starter Thread starter John Erickson
  • Start date Start date
Status
Not open for further replies.
J

John Erickson

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?
 
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)

-

"John Erickson" <JohnErickson> wrote in message

news:88A87F4D-10E2-4A43-97C9-A0426EB207FB@microsoft.com...
> 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?
 
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)
>

>

>

> -
> "John Erickson" <JohnErickson> wrote in message
> news:88A87F4D-10E2-4A43-97C9-A0426EB207FB@microsoft.com...
> > 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?


>
 
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.

"John Erickson" <JohnErickson> wrote in message

news:9F553C9E-EE2B-450A-9962-E02137222E63@microsoft.com...
> 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.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L any trick to embedding images in new outlook and outlook on the web contacts? Using Outlook 4
L new outlook contacts searching Using Outlook 4
R Outlook 2010 Outlook 2010 migration question Using Outlook 2
W New Outlook PEOPLE blank Using Outlook 7
C New Outlook issues with Gmail, particularly labels/folders Using Outlook 4
E What is the next workaround for macro in New Outlook 1.2025.1111.100 Outlook VBA and Custom Forms 3
E Need to digitally sign macro but VBA\Outlook crash Outlook VBA and Custom Forms 4
P Outlook 2003 no longer opens "without" Folder List Showing in Navigation Pane Using Outlook 2
Hornblower409 Outlook 2010 - Never ending update Using Outlook 0
V Outlook created new profile? Using Outlook 1
J Outlook inbox question Using Outlook 4
T How to Add AT&T Contacts to Outlook 365 Using Outlook 7
F Outlook 2021 outlook on iPhone Using Outlook 1
F Outlook 2021 Outlook on iPhone asks for password Using Outlook 0
P ics calendar entries suddenly open up new Outlook Using Outlook 3
P Outlook "forgets" password until system rebooted Using Outlook 2
N Why does Outlook keeping adding to the email address I have in my notes portion of a contact? Using Outlook 2
M Anyone integrated AI website builders with Outlook for automated client communications? Using Outlook 1
V Gmail in Outlook Using Outlook 2
T Where has the Copilot icon gone in my Outlook desktop client? Using Outlook 7
P New way by Microsoft to get people to use the new Outlook Using Outlook 4
C How to keep emails in account in Outlook after closing the IMAP account Using Outlook 1
cymumtaz IMAP calendars in New Outlook Using Outlook 5
T Constantly Have To Log In To Outlook On The Web Using Outlook.com accounts in Outlook 2
T Cannot Find Outlook Noted On Android Using Outlook 4
O Outlook 2024 not showing that messages are replied to or forwarded Using Outlook 3
C Outlook 365 send/receive takes FOREVER - as in 40 minutes Using Outlook 7
I Outlook 2024 LTSC syncing with iCloud calendar - can only make appt. in iCloud Using Outlook 2
Kika Melo Outlook ribbon customisations do not 'stick' Using Outlook 12
J IMAP Folders Confusion in Windows Classic Outlook Using Outlook 1
A Missing Sent Emails in New Outlook Using Outlook 18
S Missing categories in Outlook calendar Using Outlook 10
P Windows 11 tries to open New Outlook when the user clicks on the mail icon on a news article Using Outlook 2
C I don't understand Outlook or Microsoft, anymore Using Outlook 12
P My Feedback to Microsoft and their response; also New Outlook roadmap Using Outlook 0
A New Outlook - Cannot drag IMAP emails to Task List in MyDay Using Outlook 1
L Android Outlook Doesn't Update PC Notification Changes Using Outlook 0
A How to open Excel file saved in Outlook folder? Outlook VBA and Custom Forms 4
D.Moore Outlook desktop client suggested searches question Using Outlook 22
Y Outlook 2016 (64-bit) Copy Local Cal. Events to Another Cal. with Modified Reminder time Using Outlook 2
T Outlook 2019 While connecting an IMAP account in "classic" Outlook 2024 I caused a massive duplication of emails on the server (death loop) Using Outlook 5
D Cannot logon to Outlook.com, or outlook on Mac, outlook not updating on ipad, iphone Using Outlook 1
J unable to get my new install of Outlook to display mailboxes in the single-line format. Using Outlook 1
D Legacy Microsoft Outlook for Mac Support will end in Oct 2025 Using Outlook 8
C Nasty Bug Lurking In Outlook For Years. The Trigger. Any Fix Or Workaround? Using Outlook 12
R Auto clicking Hyperlink in outlook Outlook VBA and Custom Forms 7
ughlook Open multiple contacts in NEW Outlook? Using Outlook 3
G Outlook translation feature is off Using Outlook 2
J Outlook 2010 does not let me put any account Using Outlook.com accounts in Outlook 3
P 3 of 5 PST files don't install from d:\outlook but only from D:\ Using Outlook 7

Similar threads

Back
Top