Email link in GUI dialog box

6 次查看(过去 30 天)
Hi,
I've developed an application and on the front page, the ABOUT button opens a small window containing with version number and contact details to get help, i.e. name, phone number and email address. Is it possible to embed the email address as a 'mailto' link as opposed to standard text?
Thanks Celine

采纳的回答

Jan
Jan 2011-7-1
You can create a button, which calls WEB in the callback:
web('mailto:your.mail@address.org');
Yair has described how a borderless button can be drawn: Undocumented:Borderless button. If you use this, care for at least an underlined style, otherwise the user does not get the impression, that this is a link.
  2 个评论
Celine Cluzel
Celine Cluzel 2011-7-1
Brilliant, thanks for your help, it works perfectly.
Adam Danz
Adam Danz 2020-1-26
8.5 years later....
Here's a demo.
In that demo, replace this line
th.ButtonDownFcn = @(~,~)web('mathworks.com');
with this
th.ButtonDownFcn = @(~,~)web('mailto:your.mail@address.org');

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by