Strange behaviour with uigetfile in APPDesigner (not observed in GUIDE)

1 visualización (últimos 30 días)
Hello.
I am updating my code from GUIDE and have found a strange effect using uigetfile. It works fine in GUIDE.
what happens is when I run this, whilst it works, my app switches and makes the matlab command window come to the front. Althought I can just reselect my app, its not ideal. Thanks for any pointers.
Jason
This is my code.
[file,path,idx]=uigetfile({'*.tif';'*.tiff';'*.RAW';},'Load Image',app.startfolder);
where startfolder is defined as a public property
properties (Access = public)
startfolder %starting generic save / load folder
and initiated in the StartupFCN:
function startupFcn(app)
app.startfolder='C:\' ;%starting generic save / load folder

Respuesta aceptada

Mario Malic
Mario Malic el 8 de Oct. de 2020
This is a known issue with App Designer, here's the workaround, see the accepted answer.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by