Uidatepicker in app designer
이전 댓글 표시
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
Omer Eker
2018년 8월 8일
Hi Ricardo, I am new to appdesigner, but i like it very much. I didnt get whether you managed to see datepicker component in the component list (left pane). If not, how was your problem solved?
Ricardo Pedó
2018년 8월 10일
Omer Eker
2018년 8월 11일
Ricardo, thanks for the reply. Where do I put these 2 lines in my appdesigner codes?
Omer Eker
2018년 8월 12일
OK managed to have the datepicker component in my panel. But it only appears when the button was clicked. I need it to be appeared all the time there, can we do that?
Omer Eker
2018년 8월 12일
OK that one is sorted too :)
Ricardo Pedó
2018년 8월 13일
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일
0 개 추천
You can pass the panel’s handle as the parent for the uidatepicker. The syntax is described here:
Ricardo Pedó
2018년 4월 21일
편집: per isakson
2018년 4월 21일
댓글 수: 1
Chris Portal
2018년 4월 21일
Hmm, that’s what you need to do. What is the error you’re getting?
Ricardo Pedó
2018년 4월 21일
0 개 추천
댓글 수: 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일
0 개 추천
댓글 수: 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일
0 개 추천
댓글 수: 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!
Ricardo Pedó
2018년 4월 21일
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!