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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem in permanent type add-in toolbar



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old December 17th 09, 04:39 AM posted to microsoft.public.outlook.program_vba
paresh
external usenet poster
 
Posts: 66
Default Problem in permanent type add-in toolbar

Thanks that makes perfect sense to me but I think I don't need to write
wrapper class for explorer as my requirements are very simple and nothing is
shared between the toolbar clicks that might cause the issue.

What all I want is to put toolbar whenever new explorer open and perform the
operation when button click.

Thanks a lot for your help.
Paresh

"Ken Slovak - [MVP - Outlook]" wrote:

Here's one example.

You have a toggle button that indicates a state for doing something. If you
have 2 Inspectors open and both use the same Tag value for a
CommandBarButton, both will get the click event that toggles the button. So
toggling in one toggles both. Then when some action is taken based on the
button state you can't maintain separate states for the button in each
Inspector.

Using wrapper classes solves a number of problems such as that with unique
Tag values, individually handling events in multiple open windows, handling
discrete ribbon clicks that are directed to only one Inspector where you
pass the click to a handler in your wrapper class, etc.

Every advanced Outlook developer I know uses wrapper classes and
collections, but your mileage may vary. I'd never do an Outlook addin myself
without wrapper classes.

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


"paresh" wrote in message
...
Ken, actually I am just wondering why we have to write the very complex
code
to handle the toolbar for all opened Outlook windows individually? I
understood your concept of generating TAG id uniquely after creating the
explorer object but I haven't noticed multiple events firing when I have
two
Outlook window open and both have same toolbar "My Toolbar" with same
Buttons
and same TAGs.

In short, could you give me a simple example where we have to use the
concept given by you and my code will not work? I am intermediate level in
add-in so I might not be aware of many things.

Thanks,
Paresh


.

 




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
Toolbar problem -Help lencastro Add-ins for Outlook 0 May 25th 07 11:27 AM
Toolbar problem -Help lencastro Add-ins for Outlook 0 May 25th 07 11:20 AM
Problem when adding new toolbar on NewInspector when editor type in Word - Outlook 2003 Harry Add-ins for Outlook 3 March 26th 07 02:25 PM
Problem when adding new toolbar on NewInspector when editor type is Word - Outlook 2003 Harry Outlook - General Queries 1 February 7th 07 02:06 PM
Toolbar problem Lesley Outlook Express 7 August 30th 06 10:19 AM


All times are GMT +1. The time now is 03:38 PM.


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.