How to get a UI to capture start and end date from user.
Show older comments
Hi! I am using questdlg to ask user if he wants to use default date range or a custom date range. If the user selects Custom date range. I want to pop up a UI that can in the same window have two calendars to capture start and end date. Also, i want the figure to have a editable box where if the user wants he can manually enter the date or else click on calendar. and if the user by accident clicks close it takes the default date range option from the questdlq case.
Please, let me know if my question is not very clear.
I am using MATLAB 2017(a)
Thanks
5 Comments
Your question is clear. What have you tried so far? There are quite a few steps needed to put together this GUI and I doubt someone will do it all for you. With some ' googling ' and searching in these forums, I bet you could do much of this yourself. Learning how to make GUIs is rewarding.
Are you using GUIDE or are you developing the GUI using uicontrol()?
See how far you can get and if you stumble upon something more specific, come back to the forums.
sc1991
on 24 Jul 2018
Adam Danz
on 24 Jul 2018
I used GUIDE when I started learning and that was really helpful. Keep doing that. Smaller GUIs are easier to make with uicontrol(). Good luck.
sc1991
on 27 Jul 2018
Adam Danz
on 27 Jul 2018
All functions stored in your GUI script created by GUIDE will be deleted along with your GUI when you close the GUI. If your goal is to make the GUI disappear but keep the functions and variables, maybe you could toggle the GUI's visibility instead of closing it.
Answers (1)
ES
on 25 Jul 2018
0 votes
Try this.. https://undocumentedmatlab.com/blog/date-selection-components
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!