MATLAB: GUI issues when running as stand-alone Windows 32 bit

2015bbugMATLAB Compilermatlab gui

I have an application that has been running fine both inside Matlab and as stand-alone when built from 2014b. After installing 2015b the application still looks correct when run from Matlab, but after compiling and running as stand-alone some of the graphic elemets are missing. The application still works, and no visible errors are thrown, but borders around some buttons are missing and drop-down menues looks bad. I have tried to re-install MCR 9.0 and I have deleted and created a new project file, but still no luck.

Best Answer

This is a known bug. See workarounds here: http://www.mathworks.com/support/bugreports/1293244
You have to put the code in your startup.m file, and make sure it gets run when your target standalone runs, i.e., don't put the code in a block like
if ~isdeployed
I'll try to edit this later and show you what you need to have in your startup.m, but it's basically what workaround #1 says. Don't overwrite your own startup.m though, just add what they say to your existing startup.m.