Why does a VB event not fire when called from a GUI callback using MATLAB Builder for COM 1.1.3 (R14SP1+)?
2 views (last 30 days)
Show older comments
I am trying to create a Visual Basic event that will be called from a COM class method. The event is called from a GUI callback function. For example, I might create a GUI that consists of a pushbutton and in the callback for a button click call the following function:
function myevt(x)
%#event
x
I then compile my files into a COM component and instantiate the class from a Visual Basic form. However, when my GUI appears and I push the button, the Visual Basic event that I have programmed does not fire.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
We have verified that MATLAB Builder for COM 1.1.3 (R14SP1+) does not allow Visual Basic events to be fired from MATLAB GUI callback functions. Currently, MATLAB Builder for COM only supports callbacks from an active call from the client code and not "passive events" such as those fired from within a MATLAB GUI.
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!