I want to add a push button or a clickable link into a cell of table
3 次查看(过去 30 天)
显示 更早的评论
I want to add a push button or a clickable link into a cell of table,.. How can I do this??
I am using MATLAB GUI Window...
Please anyone help.
0 个评论
回答(1 个)
Oleg Komarov
2012-5-9
You have to code a 'ButtonDownFcn' which has to parse the string and check if it's an HTML link, then open the link, format the link to violet (optional).
To get you started:
f = figure('Position',[200 200 400 150]);
link = '<http://www.mathworks.com/matlabcentral/answers/37852 My thread>';
t = uitable('Parent',f,'Data',{link},'ColumnName',{'Col1'},...
'ColumnFormat',{'char'},'Position',[20 20 360 100]);
1 个评论
Daniel Liberman
2020-5-20
Hi,
What if insted of an html I wand to create a list of hyperlinks to pdf/docx files?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!