MATLAB Answers

How to place a uicalendar inside a panel

2 views (last 30 days)
Cesar Daniel Castro
Cesar Daniel Castro on 19 Feb 2020
Answered: Hiro Yoshino on 19 Feb 2020
Dear Community,
I am creating a GUI to modify start and end time from a time series. I am trying to place a uicalendar inside a uipanel. For this case, I have 2 panels:
Font = 'Corbel';
panel1 = uipanel('Title','Start Time','FontName',font,'FontSize',10,'Position',[.2 .075 .35 .85]);
panel2 = uipanel('Title','Stop Time','FontName',font,'FontSize',10,'Position',[.6 .075 .35 .85]);
And then, I am trying to insert the uicalendar like this:
uicalendar('Weekend', [1 0 0 0 0 0 1],'SelectionType',1,'DestinationUI',panel1)
uicalendar('Weekend', [1 0 0 0 0 0 1],'SelectionType',1,'DestinationUI',panel2)
but is not working. I am getting the calendar, but out of the panels
Can somebody help me?

  0 Comments

Sign in to comment.

Answers (1)

Hiro Yoshino
Hiro Yoshino on 19 Feb 2020
How about using AppDesigner? There is a function available that looks able to meet your want.

  0 Comments

Sign in to comment.

Sign in to answer this question.