필터 지우기
필터 지우기

How to add mouseover in GUI

조회 수: 39 (최근 30일)
Chandra Shekhar
Chandra Shekhar 2013년 7월 8일
댓글: Frank van Diggelen 2018년 3월 16일
I have created a GUI using guide, there are multiple pushbuttons in the GUI.
If i put my mouse pointer over the any pushbutton in GUI, then it has to display description in small box about that pushbutton.
Is it possible to add mouseover message for each pushbutton in GUI.
Please any one suggest me how to do this.
Thanks in advance.

답변 (1개)

Jan
Jan 2013년 7월 8일
편집: Jan 2013년 7월 8일
Do you know the 'TooltipString' property already?
figure
uicontrol('Style', 'Pushbutton', 'String', 'Hello', ...
'TooltipString', ['This is the Tooltip string!', char(10), ...
'And a 2nd line also.']);
  댓글 수: 3
Jan
Jan 2013년 7월 8일
And this looks fine. Using SPRINTF('\n') is equivalent to inserting the CHAR(10) manually. Does it work as expected and is the problem solved now?
Frank van Diggelen
Frank van Diggelen 2018년 3월 16일
How do you do this for a button created in appdesigner? It looks like appdesigner buttons dont have Tooltipstring property:
set(app.buttonGetFile,'TooltipString','This is the mouseover string')
Error using matlab.ui.control.Button/set
There is no TooltipString property on the Button class.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by