How to hide the mouse pointer in app designer

How to hide the cursor (pointer) when building apps using app designer?
Need to hide cursor for 2 mins.
Have tried set(app.UIfigure, 'Pointer', 'custom', 'PointerShapeCData', NaN(16,16)) and did't work.
Any suggestions?

4 comentarios

Rik
Rik el 15 de Ag. de 2019
Please post questions only once.
Adam Danz
Adam Danz el 15 de Ag. de 2019
Editada: Adam Danz el 15 de Ag. de 2019
The UIFigure does not have the 'pointer' property. Here's a list of properties a UIFigure does have.
What's your goal? Are you trying to prevent the user from interacting with the GUI for a set duration of time? If so, there are better ideas.
JIAYING WU
JIAYING WU el 15 de Ag. de 2019
Editada: JIAYING WU el 28 de Ag. de 2019
Not really. I have built an app for color image judgement and for some reason I need to show a full screen image to my observer for like 2 mins and during that time I don't want my observer to be attracted other than my image. That's the reason I want to hide my mouse pointer during that time zone.
Adam Danz
Adam Danz el 15 de Ag. de 2019
Editada: Adam Danz el 15 de Ag. de 2019
Does the full screen image have to be displayed on a UIFigure instead of a normal figure() where the pointer property is functional?
Maybe Jan's WindowAPI function will work with UIFigures (I'd look into it before investing much time).

Iniciar sesión para comentar.

Respuestas (2)

Devineni Aslesha
Devineni Aslesha el 28 de Ag. de 2019

0 votos

As of now, using a custom pointer is not supported in AppDesigner -> uifigure for the available MATLAB releases. However, the concerned parties may be looking into it and might be added in the future releases.
Matthias Weber
Matthias Weber el 3 de Feb. de 2020
Editada: Matthias Weber el 3 de Feb. de 2020

0 votos

Can you suggest any alternatives to indicate that the device is busy or a mechanism to avoid further user interaction, e.g. firing events which lead to the execution of UI callbacks?

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Preguntada:

el 15 de Ag. de 2019

Editada:

el 3 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by