|
|
От: |
mr.Vitaly
|
|
| Дата: | 22.11.02 10:53 | ||
| Оценка: | |||
Vi2>Потому что вызывается не get_OnAction, а put_OnAction метод.А>>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.