Dispay information for Button in AppDesigner
6 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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 Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!