I am tring to build GUI . i want to make the panel invisible once key (like "Esc") pressed or mouse clicked on any where on the screen.

I am tring to build GUI . i want to make the panel invisible once key (like "Esc") pressed or mouse clicked on any where on the screen. How to do that.
Thanks

답변 (1개)

You can use 'keypress' function along with visibility property of panel in question.
Hope it helps!!!

댓글 수: 3

Hi, Thank You for your reply Can you please given an simple example how to use "KeyPressFCN" to make panel visible or invisible
Thank You
along with this i want that if i click anywhere on screen then the particular panel become invisible

이 질문은 마감되었습니다.

질문:

2015년 5월 4일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by