B
bourgui
Hi All,
I have this addin for Powerpoint for which I created a toolbar.
The toolbar is added when the addin is loaded, via the 'Autpen'
method, and removed when the addin is unloaded with 'Auto_Close'.
It works fine, except that the 'Auto_Close' method is also run
whenever powerpoint is closed, which removes the toolbar. When
powerpoint is started again, the toolbar is recreated, which
unfortunately repositions the toolbar at the end of all the existing
toolbars, regardless of whether the client had moved the toolbar or
not.
So I was thinking, is there a way that I can determine whether the
'Auto_Close' method is being called because Powerpoint is closing or
because the addin is being unloaded. I can't change the OnClose event
itself, as it is installed on clients' machines
If my guess is correct, if the toolbar is not removed, it should
appear in the same position after a restart. Or am I wrong?
Or is there a different way of doing this?
thanks!
I have this addin for Powerpoint for which I created a toolbar.
The toolbar is added when the addin is loaded, via the 'Autpen'
method, and removed when the addin is unloaded with 'Auto_Close'.
It works fine, except that the 'Auto_Close' method is also run
whenever powerpoint is closed, which removes the toolbar. When
powerpoint is started again, the toolbar is recreated, which
unfortunately repositions the toolbar at the end of all the existing
toolbars, regardless of whether the client had moved the toolbar or
not.
So I was thinking, is there a way that I can determine whether the
'Auto_Close' method is being called because Powerpoint is closing or
because the addin is being unloaded. I can't change the OnClose event
itself, as it is installed on clients' machines
If my guess is correct, if the toolbar is not removed, it should
appear in the same position after a restart. Or am I wrong?
Or is there a different way of doing this?
thanks!