Dispay information for Button in AppDesigner

조회 수: 4 (최근 30일)
Harish M Y
Harish M Y 2021년 7월 5일
편집: Chunru 2021년 7월 5일
Hi I want do display information for the button without clicking the button function. How can I do this in appdesinger?
Example:
If I want to load file from certain directory, For LoadFile button if I move my cursor on the LoadFil button, it should display the information where the file should get selected or what file to be selected

답변 (1개)

Chunru
Chunru 2021년 7월 5일
편집: Chunru 2021년 7월 5일
Use 'Tootip' property.
k = uibutton('Text', 'TestTooltp', 'Tooltip', 'Show some information when hover over')
The documentation from uibutton:
Tooltip — Tooltip
'' (default) | character vector | cell array of character vectors | string array | 1-D categorical array
Tooltip, specified as a character vector, cell array of character vectors, string array, or 1-D categorical array. Use this property to display a message when the user hovers the pointer over the component at run time. The tooltip displays even when the component is disabled. To display multiple lines of text, specify a cell array of character vectors or a string array. Each element in the array becomes a separate line of text. If you specify this property as a categorical array, MATLAB uses the values in the array, not the full set of categories.

카테고리

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