Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / April 2004

Tip: Looking for answers? Try searching our database.

change bahavoir standard buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexey Yukhovich - 18 Mar 2004 14:42 GMT
How  change behavoir standard buttons in standard toolbar ?

for sample i woud like change behavoir button 'Send' in Task-message.
Ken Slovak - [MVP - Outlook] - 19 Mar 2004 15:23 GMT
You can't. Disable the standard button and replace it with your own that
does what you want.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> How  change behavoir standard buttons in standard toolbar ?
>
> for sample i woud like change behavoir button 'Send' in Task-message.
Rapid Response - 02 Apr 2004 19:16 GMT
While it's true that you cannot capture or override programmatic execution
of commands (i.e. a script calling send on a message object).you can capture
and override the user interface execution of commands (the user pressing the
send button).

To have your add-in called when a UI command is executed, do the following:

* Retrieve the command bar that contains the button the you want to
override.

* Call the command bar's Find method. It will return a command button
object.

* Setup and event sink with the command button.

* When your event sink method is called be sure to set the cancelled
parameter to true

This works for standard buttons. I haven't been able to get this to work
with the drop-down buttons (i.e. new mail item button).

> How  change behavoir standard buttons in standard toolbar ?
>
> for sample i woud like change behavoir button 'Send' in Task-message.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.