How do I use tooltip string in app designer

I want to have help text when the cursor hovers over buttons created in app designer.
With uicontrol in a figure I can do this with: uicontrol('Style', 'Pushbutton', 'String', 'Hello','ToolTipString','This is the tooltip string')
but how do you do this within app designer?

 Respuesta aceptada

Stephen Jue
Stephen Jue el 14 de Abr. de 2017

1 voto

There is currently no way to add tooltips in App Designer. This is known to the developers and they are working to add this to a future release of MATLAB.

3 comentarios

Claire Motion
Claire Motion el 8 de Nov. de 2017
Is this likely to be implemented in 2018a? As 2017b doesn't seem to have this yet, and it would be really good if it could be added!
Alvaro Aguilar
Alvaro Aguilar el 13 de Sept. de 2018
Is there an update to when tooltips will be added to MATLAB App Designer?
Melissa Williams
Melissa Williams el 26 de Nov. de 2018
R2018b supports tooltips. See more below

Iniciar sesión para comentar.

Más respuestas (5)

Timothy Stewart
Timothy Stewart el 18 de Sept. de 2018

7 votos

2018b supports Tooltips.
Enjoy!
"Tooltips: Create custom tooltips for UI components in apps Set the Tooltip property on a UI component to display a tooltip when the user hovers the mouse over the component at run time. Tooltips display even when the components are disabled.
The Tooltip property is available for UI components in App Designer apps and in figures created with the uifigure function.
If you are creating an app using GUIDE or the figure function, use the Tooltip property instead of the TooltipString property on UIControl, Table, Tab, PushTool, and ToggleTool UI components. For details, see TooltipString property is not recommended."
Melissa Williams
Melissa Williams el 25 de Oct. de 2018

1 voto

In 18b App Designer, you can use the Property Inspector from code or design view to add tooltips to your components - the code will automatically be generated for you as for other property sets.
Sonia Suarez
Sonia Suarez el 2 de Oct. de 2017

0 votos

on your opening function for your guide try:
handles.pushbutton1.TooltipString=['This is the Tooltip string!', char(10), ... 'And a 2nd line also.']);

1 comentario

Frank van Diggelen
Frank van Diggelen el 9 de Nov. de 2017
I tried this in appdesigner, but it doesnt work there:
app.buttonGetFile.TooltipString=['This is the Tooltip string!']
No public property TooltipString exists for class matlab.ui.control.Button.

Iniciar sesión para comentar.

Gianluigi
Gianluigi el 7 de Nov. de 2018

0 votos

Hi, I have installed the R2018b but still I am not able to add a tooltipstring to any element, button, listbox, etc

2 comentarios

Lothar
Lothar el 16 de En. de 2019
I've installed R2018b and tooltip in App Designer works well. To use the App in R2018a fails cause of missing tooltip functionality. So I tried to remove the tooltip in App Designer, but this leads to an error message which prevents removal of the tooltip.
Anny suggestions on this ?
Brendan Nichols
Brendan Nichols el 22 de En. de 2019
This is a known bug with removing tooltips. The only way around it is to delete and remake the object as far as I know.

Iniciar sesión para comentar.

Amanda Irving
Amanda Irving el 26 de Nov. de 2018
The name of the property to create a component specific tooltip is Tooltip
app.buttonGetFile = uibutton;
app.buttonGetFile.Tooltip=['This is the Tooltip string!']

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Abr. de 2017

Comentada:

el 22 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by