StackOverflowMATLABchat / mlapptools

MATLAB class containing methods for programmatic uifigure modification
http://undocumentedmatlab.com/blog/customizing-uifigures-part-2
MIT License
25 stars 11 forks source link

Fieldname update for matlab.internal.webwindow on R2017a #2

Closed Dev-iL closed 7 years ago

Dev-iL commented 7 years ago

With reference to the following line: https://github.com/StackOverflowMATLABchat/mlapptools/blob/74ce1e5ead81e00060cd888fe7bafb8f1c0225fc/mlapptools.m#L59

In R2017a this is required instead:

struct(struct(struct(app.UIFigure).Controller).PlatformHost).CEF;

Opening an issue since I'm not sure what's the best way to have the correct code execute based on MATLAB version.

sco1 commented 7 years ago

Thanks for the heads up! The simplest method is to use verlessthan, I'll try to get it thrown in this morning.

Dev-iL commented 7 years ago

From private correspondence with Yair, it seems like this change was actually introduced in R2016b. I will try to verify this and update.