Add-in buttons and customized toolbars

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

First off, let me thank all the persons involved with this group for their participation. As a newbie, past messages have been an invaluable resource for learning.
I have created a new Outlook toolbar with several buttons with code modeled after ItemsCB. One of the buttons contains a popup, with more buttons showing on its menu. Everything works as expected, until the users customizes the toolbars.
Let's say the user makes a copy of my popup menu button, and in the copy deletes one of the menu buttons. The buttons remaining on this menu continue to work, until Outlook is stopped and then restarted. The copied popup button is there, but all subordinate buttons are missing. How do I get Outlook to retain the subordinate buttons? I can't just put them all back via the add-in, since I don't know
how the user may have customized it.
Similarly, if I have made a copy of one of my buttons to another toolbar via the customize function,
the copied button does not react to changes in attributes (active flag, etc). The only way I know to solve this problem is to scan all toolbars for all occurences of the button of interest (via the tag), and to change the attributes accordingly. This process is somewhat slow. Is there a better way to handle this?
Thanks again for your help.
 
Create your buttons as temporary ones. When your addin starts up check
for any existing instances of your buttons and delete them, then
create what you want as temporary. That way you always know what will
be there.




NewCoder said:
First off, let me thank all the persons involved with this group
for their participation. As a newbie, past messages have been an
invaluable resource for learning.
I have created a new Outlook toolbar with several buttons with code
modeled after ItemsCB. One of the buttons contains a popup, with more
buttons showing on its menu. Everything works as expected, until the
users customizes the toolbars.
Let's say the user makes a copy of my popup menu button, and in
the copy deletes one of the menu buttons. The buttons remaining on
this menu continue to work, until Outlook is stopped and then
restarted. The copied popup button is there, but all subordinate
buttons are missing. How do I get Outlook to retain the subordinate
buttons? I can't just put them all back via the add-in, since I don't
know
how the user may have customized it.
Similarly, if I have made a copy of one of my buttons to another
toolbar via the customize function,
the copied button does not react to changes in attributes (active
flag, etc). The only way I know to solve this problem is to scan all
toolbars for all occurences of the button of interest (via the tag),
and to change the attributes accordingly. This process is somewhat
slow. Is there a better way to handle this?
 
Back
Top