Uidatepicker in app designer
5 次查看(过去 30 天)
显示 更早的评论
Is there any way to place a uidatepicker element inside an existing app designer panel? The samples I've seen only show how to do that creating a new figure...
7 个评论
Arshad Ilahi
2019-12-3
Hello Eker,
Can you share what you did for placeing a uidatepicker element inside an existing app designer panel?
回答(5 个)
Chris Portal
2018-4-21
编辑:per isakson
2018-4-21
You can pass the panel’s handle as the parent for the uidatepicker. The syntax is described here:
0 个评论
Ricardo Pedó
2018-4-21
1 个评论
Chris Portal
2018-4-21
If you instead parent a button to the panel at the same line of code, does the button show up?
Ricardo Pedó
2018-4-21
1 个评论
Chris Portal
2018-4-21
编辑:per isakson
2018-4-21
Sorry, I meant comment out your date picker line of code, and add this line of code:
b = uibutton(app.Panel);
Does the button show up in the panel? This will determine whether the issue is with date picker specifically or something else.
Ricardo Pedó
2018-4-21
2 个评论
Chris Portal
2018-4-21
编辑:per isakson
2018-4-21
Thanks. It looks to be a positioning bug specific to date picker. You can work around it by doing the following:
p = uidatepicker(app.Panel, ‘DisplayFormat’, ‘dd-MM-yyyy’); p.Position(1:2) = [0 0];
I’ll report the bug for you. Thank you!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!