 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Leonid Zeitlin Guest
|
Posted: Wed Mar 21, 2007 9:56 pm Post subject: Delayed CommandBarButton.Set_Enabled from SelectionChange Ex |
|
|
Hi all,
I am facing a strange problem in Outlook 2007. I have an add-in that
displays an additional command bar in the Outlook main (Explorer) window.
The command bar has a button that is enabled when exactly one email is
selected in Explorer view, and disabled otherwise. I do the following
sequence: click on an email: button is enabled; click on a group header such
as "Today", "Yesterday", etc: button is disabled; click on an email again
and so on. After a few tries I can see that a few seconds pass between
clicking on an email and button getting enabled. As if there's some delay
between the button gets enabled and repaints itself.
I can see that SelectionChange event of the Explorer objects fires on time,
immediately after email is clicked. It just takes time for the change to
become visible.
An interesting observation: there's a OneNote button on the Outlook toolbar
created by the Microsoft's own OneNote add-in. This button exhibits exactly
the same problem! At the same time I have OutlookSpy installed, and its
buttons do not exhibit this problem.
Any ideas?
Thanks a lot,
Leonid |
|
| Back to top |
|
 |
Dmitry Streblechenko Guest
|
Posted: Sun Mar 25, 2007 2:00 am Post subject: Re: Delayed CommandBarButton.Set_Enabled from SelectionChang |
|
|
OutlookSpy enables/disabled its buttons based on the ECE callbacks rather
than OOM events.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Leonid Zeitlin" <lz (AT) csltd (DOT) com.ua> wrote in message
news:460163da (AT) newsgroups (DOT) borland.com...
| Quote: | Hi all,
I am facing a strange problem in Outlook 2007. I have an add-in that
displays an additional command bar in the Outlook main (Explorer) window.
The command bar has a button that is enabled when exactly one email is
selected in Explorer view, and disabled otherwise. I do the following
sequence: click on an email: button is enabled; click on a group header
such as "Today", "Yesterday", etc: button is disabled; click on an email
again and so on. After a few tries I can see that a few seconds pass
between clicking on an email and button getting enabled. As if there's
some delay between the button gets enabled and repaints itself.
I can see that SelectionChange event of the Explorer objects fires on
time, immediately after email is clicked. It just takes time for the
change to become visible.
An interesting observation: there's a OneNote button on the Outlook
toolbar created by the Microsoft's own OneNote add-in. This button
exhibits exactly the same problem! At the same time I have OutlookSpy
installed, and its buttons do not exhibit this problem.
Any ideas?
Thanks a lot,
Leonid
|
|
|
| Back to top |
|
 |
Leonid Zeitlin Guest
|
Posted: Fri Apr 13, 2007 7:29 pm Post subject: Re: Delayed CommandBarButton.Set_Enabled from SelectionChang |
|
|
Hi Dmitry,
Thanks for your suggestion to use ECE callbanks. Using this technnique I
have overcome my problem, or so it seems now.
Thanks,
Leonid
"Dmitry Streblechenko" <dmitry (AT) dimastr (DOT) com> сообщил/сообщила в новостях
следующее: news:460590eb$1 (AT) newsgroups (DOT) borland.com...
| Quote: | OutlookSpy enables/disabled its buttons based on the ECE callbacks rather
than OOM events.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Leonid Zeitlin" <lz (AT) csltd (DOT) com.ua> wrote in message
news:460163da (AT) newsgroups (DOT) borland.com...
Hi all,
I am facing a strange problem in Outlook 2007. I have an add-in that
displays an additional command bar in the Outlook main (Explorer) window.
The command bar has a button that is enabled when exactly one email is
selected in Explorer view, and disabled otherwise. I do the following
sequence: click on an email: button is enabled; click on a group header
such as "Today", "Yesterday", etc: button is disabled; click on an email
again and so on. After a few tries I can see that a few seconds pass
between clicking on an email and button getting enabled. As if there's
some delay between the button gets enabled and repaints itself.
I can see that SelectionChange event of the Explorer objects fires on
time, immediately after email is clicked. It just takes time for the
change to become visible.
An interesting observation: there's a OneNote button on the Outlook
toolbar created by the Microsoft's own OneNote add-in. This button
exhibits exactly the same problem! At the same time I have OutlookSpy
installed, and its buttons do not exhibit this problem.
Any ideas?
Thanks a lot,
Leonid
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|