Before PopUp

Add-in Express™ Support Service
That's what is more important than anything else

Before PopUp
 
Gürcan YÜCEL.


Guest


Hi,
Im writing a MS Word Addin. In TAdxCommandBar I placed buttons and TAdxCommandBarPopup. I need an event fired before popup. How can I do that? Thanks.

Gürcan YÜCEL.
Posted 28 Sep, 2004 07:57:10 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Hi Gürcan,

There is no easy way. Only the low level way with WinAPI.
Posted 28 Sep, 2004 08:15:48 Top
Gürcan YÜCEL.


Guest


Hi,
While reading the help files, I learned that I can use TAdxBuiltInControl to hook default buttons with officeID property. I gave a OfficeID(9999) to my TAdxCommandBarPopup. And unregister/register it again. With your "Office Built in control scanner" I scan the MS Word. But my OfficeID is 1 again. Is it possible to set it? If yes, can I use to hook TAdxBuiltInControl to TAdxCommandBarPopup?

Thanks again.
Posted 28 Sep, 2004 08:50:21 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Gürcan,

You cannot "hook" pop-ups. They do not have events.
Look at the CommandBarPopup interface in Word VBA help.
Posted 28 Sep, 2004 09:19:37 Top