Borrar filtros
Borrar filtros

How to lock the focus on a GUI window?

10 visualizaciones (últimos 30 días)
Niko
Niko el 3 de Jun. de 2014
Editada: per isakson el 4 de Jun. de 2014
Hi all,
I'm working with a multiple window GUI, and a feature I want is to lock the focus on a specific window at some point so the user cannot switch to the other windows unless they close the current one. Is that doable?
Thanks!
Niko

Respuesta aceptada

per isakson
per isakson el 3 de Jun. de 2014
Editada: per isakson el 4 de Jun. de 2014
WindowStyle
{normal} | modal | docked
[...]
Modal figures remain stacked above all normal figures and the
MATLAB Command Window.
[...]
When multiple modal windows exist, the most recently created
window keeps focus and stays above all other windows until it
becomes invisible, or is returned to WindowStyle normal, or is
deleted. At that time, focus reverts to the window that last
had focus.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by