StackOverflowMATLABchat / mlapp2classdef

Convert MATLAB App's XML file to *.m class definition
4 stars 5 forks source link

Converted GUIs may still require R2016a #7

Closed sco1 closed 8 years ago

sco1 commented 8 years ago

Many of the sample *.mlapp files from MATLAB's site utilize the setAutoResize function during GUI initialization. Though it is not documented in R2016a, it is likely a feature introduced with the App Designer as it does not exist in R2015b.

sco1 commented 8 years ago

My assumption is that this function can be reproduced by making sure that each UI element's Position property is set in 'Pixels' and then shifted to 'Normalized'.

sco1 commented 8 years ago

Another log on the fire is how the App Designer initializes properties of the class. As Yair Altman points out in his Undocumented MATLAB blog post, class property types are initialized with spaces rather than with the @ symbol.

sco1 commented 8 years ago

With the exception of registerApp, functionality that cannot be robustly converted for older versions of MATLAB will be left as-is for the user to translate appropriately.