GUI calendar

2 次查看(过去 30 天)
MrPuzzled Marc
MrPuzzled Marc 2011-4-25
Hi, I have created a calendar in MATLAB GUI. I thought it was automatically change the date itself according to the computer calendar. However, everytime I opened my GUI it still gave the same time that i created it. How can I make the adjustment so it display the correct date.

采纳的回答

Matt Fig
Matt Fig 2011-4-25
In the code you must have put in a hard value for the date. Instead, use the DATE function.
str = date;
figure('numbert','off','name',str)
You didn't mention where the date was displayed, but I show it on the titlebar of the figure above. You should also consult the help for DATE, and DATESTR. DATESTR can be used with the NOW function to get the date format you like.
  4 个评论
MrPuzzled Marc
MrPuzzled Marc 2011-4-27
I create the calendar using the ActiveX control button , inside there is a MSCalendar to choose. I have used handles.activex=date however this do not return the current date. Still stagnant to the date I created it.
MrPuzzled Marc
MrPuzzled Marc 2011-4-27
I create the calendar using the ActiveX control button , inside there is a MSCalendar to choose. I have used handles.activex=date however this do not return the current date. Still stagnant to the date I created it.

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by