MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   GUI的MATLAB日期选择弹出式日历 (https://www.labfans.com/bbs/showthread.php?t=23325)

poster 2019-12-10 20:41

GUI的MATLAB日期选择弹出式日历
 
有人知道在MATLAB gui中显示弹出日期选择日历的方法吗?我知道财务工具箱具有uicalendar功能,但不幸的是我没有该工具箱。

我有一种直觉,我将不得不为此使用某种Java或其他语言,对此我一无所知。

我正在寻找类似的东西: [URL="https://i.stack.imgur.com/d8vIp.png"][IMG]https://i.stack.imgur.com/d8vIp.png[/IMG][/URL]
(来源: [URL="http://www.welie.com/patterns/images/date-selector-expedia-small.png"]welie.com[/URL] )

在用户选择日期后返回日期字符串。



[B]回答:[/B]

我没有太多的时间进行更完整的答案,很不幸,但我想尝试uitable创建一个表,并定义CellSelectionCallback得到的日期。

以下是一些入门知识:

dates = calendar; dates(~any(dates,2),:) = []; fh = figure; uh = uitable('parent',fh,'data',dates,'ColumnWidth',repmat({20},1,7),... 'ColumnName',{'S','M','T','W','T','F','S'});

[url=https://stackoverflow.com/questions/2655554]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 04:51

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.