Re: Implementing OnAction property for custom CommandBarCont
От: Vi2 Удмуртия http://www.adem.ru
Дата: 22.11.02 08:03
Оценка:
Здравствуйте, Аноним, Вы писали:

А>Visual Basic reference widely shows how to create custom commandbar controls and how to handle events from them. One of the popular ways to do this for MS Office application is to assign the "OnAction" property for a created control. (e.g. cbCtrl.OnAction = "MyActionHandler") But how is this all implemented?

А>I am going to provide the same functionality for my CommandBarControl object. Firstly, I thought that Visual Basic queries for OnAction property and calls the function on its own, but I was wrong — my implementation of get_OnAction was never called.

Потому что вызывается не get_OnAction, а put_OnAction метод.
Vita
Выше головы не прыгнешь, ниже земли не упадешь, дальше границы не убежишь! © КВН НГУ
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.