Uidatepicker in app designer
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Arshad Ilahi
el 3 de Dic. de 2019
Hello Eker,
Can you share what you did for placeing a uidatepicker element inside an existing app designer panel?
Respuestas (5)
Chris Portal
el 21 de Abr. de 2018
Editada: per isakson
el 21 de Abr. de 2018
You can pass the panel’s handle as the parent for the uidatepicker. The syntax is described here:
0 comentarios
Ricardo Pedó
el 21 de Abr. de 2018
Editada: per isakson
el 21 de Abr. de 2018
1 comentario
Chris Portal
el 21 de Abr. de 2018
Hmm, that’s what you need to do. What is the error you’re getting?
Ricardo Pedó
el 21 de Abr. de 2018
1 comentario
Chris Portal
el 21 de Abr. de 2018
If you instead parent a button to the panel at the same line of code, does the button show up?
Ricardo Pedó
el 21 de Abr. de 2018
1 comentario
Chris Portal
el 21 de Abr. de 2018
Editada: per isakson
el 21 de Abr. de 2018
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ó
el 21 de Abr. de 2018
2 comentarios
Chris Portal
el 21 de Abr. de 2018
Editada: per isakson
el 21 de Abr. de 2018
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!
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!