MATLAB Answers

can getpixelposition() be used for uifigure?

25 views (last 30 days)
Xiangrui Li
Xiangrui Li on 28 Oct 2020
Answered: Aman Vyas on 6 Nov 2020 at 8:24
getpixelposition(hObj, recursive) is a convenient function to get the position of an object, especially when recursive is true.
The documentation says it should be used only for legacy figure/GUIDE. But based on my limited test, it works fine for uifigure without any warning.
Is the documentation a little outdated, or is there any consideration to avoid using it for uifigure?

  0 Comments

Sign in to comment.

Accepted Answer

Aman Vyas
Aman Vyas on 6 Nov 2020 at 8:24
Hi,
getpixelposition is supported in uifigure. The documentation pages should update in future releases.
Aman

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!