Why does the ActiveX "Mwsamp" example not refresh properly within MATLAB 7.0 (R14)?

I am following the documentation example of adding an ActiveX control to a GUI in MATLAB 7.0 (R14). This example is accessible by executing:
web([docroot '/techdoc/creating_guis/ch_program20.html#27773'])
However, the ActiveX "Mwsamp" example does not refresh properly.

 Accepted Answer

This bug has been fixed in MATLAB 7.0.1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in MATLAB 7.0 (R14) in the way that ActiveX are refreshed.
To work around this issue, try replacing the following
refresh(handles.figure1);
with
handles.activex1.Redraw

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!