Question

I have a very annoying problem with my matlab gui.

Once I start my program the gui can not be just send to the background, it pops up again an arbitrary number of times, until it decides to finally stay. I have to minimize it at least 10 times before it really stays there.

Is that a common behaviour? I have not modified anything of the gui initialization code, I basically just added a button to execute my function in a loop.

Any ideas are welcome!

cheers, Chris

Était-ce utile?

La solution

Yeah, I get annoyed by that too. You can hide the GUI (either within code or on the command line) with

set(myGuiFigureHandle, 'Visible', 'off')

and restore it with

set(myGuiFigureHandle, 'Visible', 'on')

which is fine in some situations, but not if the user simply wants to minimize for the time being. You could detect a minimize and hide, but then the figure window will disappear from the task bar, and the only way to restore its visibility is from code or the command line.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top