How can i print at app designer on a Text Area box, text with hyperlinks?

Hi,
How can i print in Text area box (with app designer), hyperlinks for files that located in local PC?
when im using the sprintf function rom conslue window i can see the print with hypelink, for example:
sprintf('<a href="matlab: winopen(''%s'')">%s</a>\n\n', filepath, CurrentFileName),
but when im trying to print the same inside the text area its printing me the whole string:
How can i print hyperlink inside the text area?

Answers (1)

Hi David,
You can work around this by using a UIFigure component with an HTML component inside it to display hyperlinks using the "sprintf" function -
% Generate the HTML content with hyperlink
htmlContent = sprintf('<a href="matlab: winopen(''%s'')">%s</a>', filepath, CurrentFileName);
Hope this helps.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Asked:

on 11 Aug 2024

Answered:

on 11 Aug 2024

Community Treasure Hunt

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

Start Hunting!