- Use Javascript code to implement the dynamic tooltip behavior. Alas, attaching JS code to Matlab UI is not an easy task at all (it should be, but MW for reasons unknown chose not to expose this UI-JS interface to end-users like us).
- Implement a user-defined SelectionChangedFcn callback, such that when the user clicks on any tree node, the tree's Tooltip property is updated based on the updated SelectedNodes property. This is certainly less useful than a dynamic mouse-hover tooltip, but at least better than nothing.
Add Tooltip to each UI Tree Checkbox in App Designer
59 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ravindra Goyal
el 21 de Nov. de 2025
In App Desinger I want to add tooltips to each ui tree checkbox, so here each checkbox shall tell the user more of what is done or checked with the check exactly. Example: For "Block Colors" a tooltip might show something like "Checks if each Simulink Block has its dedicated color as defined by the company guidelines". Is there an option, as I can only find to add a tooltip to the parent CheckBoxTree but not each individual checkbox? Thank you.

0 comentarios
Respuesta aceptada
Yair Altman
el 22 de Nov. de 2025
I am not aware of any easy way to do this in the new web-figures. In the old Java-based figures it was easy to attach user-defined mouse-move callbacks that would update the control's tooltip (see this oldie for example), but the new UI makes it much more difficult.
I can think of 2 sub-optimal workarounds:
Perhaps someone finds an easier solution, I'd be happy to hear. I haven't found one [yet], and I don't know if any such easier solution even exists.
4 comentarios
Ravindra Goyal
el 24 de Nov. de 2025 a las 7:49
Editada: Ravindra Goyal
el 24 de Nov. de 2025 a las 7:49
dpb
el 24 de Nov. de 2025 a las 13:23
Editada: dpb
el 24 de Nov. de 2025 a las 14:02
It's a pretty steep learning curve, for sure, it appears, particularly as (per too often usual) the examples provided are essentially trivial rather than really extending or creating new behavior.
It does look as though the classes are in m-code, however; I think if I were to really try to do something this sophisticated I would make a local copy of the base creator code and see about extending it directly rather than futzing around with the AppDesigner framework.
But, having spent 30+ yr in the consulting gig, I understand all too well the time constraints funding places on what one would like to do versus what one can afford to spend the time doing.
Más respuestas (2)
dpb
el 21 de Nov. de 2025
No, the 'Tooltip' property is a member of only the uitree object; the children of the tree do not have such.
Seems like a reasonable enhancement request, but no way to do it at present. There aren't any callbacks defined, either, so using one of those to display some text in a 'Tag' doesn't work, either. I did not explore whether one can use 'addlistener' to the nodes or not.
0 comentarios
Image Analyst
el 21 de Nov. de 2025
Editada: Image Analyst
el 22 de Nov. de 2025 a las 23:25
If anyone would know how to do it, it would be Yair Altman.
1 comentario
dpb
el 21 de Nov. de 2025
Editada: dpb
el 21 de Nov. de 2025
While Yair is certainly the preminent whizard, I'm afraid most of his firepower for this sort of thing has been neutered by Mathworks in R2025 unless one also loads the JVM that isn't done any more by default. If go that route, then would revert to using prior SWING controls instead of the new MATLAB-supplied ui-replacements.
Would love be be shown my assumptions are in error... <vbg>
Here's <link to Yair's answer> to a thread a couple of years ago about relevance of his Java enhancements book that kinda' outlines where heading was then -- with R2025 Mathworks did finally take the plunge.
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!