Max built-in functions to manage the display of windows under the UV Editor

Source: Internet
Author: User

Unwrapmodpkw = modpanel. getcurrentobject () --- modpanel. getcurrentobject is to query the current level
Xpkw = unwrapmodpkw. getwindowx () -- getwindowx find the X coordinate of the window.
Ypkw = unwrapmodpkw. getwindowy () -- getwindowy find the Y coordinate of the window.
Hpkw = unwrapmodpkw. get0000wh () -- get0000wh find the total height of the UV window.
--- But when is it equal to zero? It is carried out in the smallest ring, and the height is equal to 0.
If (hpkw = 0) then
(
Ypkw =-10
)
Ppkw = point2 xpkw (ypkw + hpkw) --- the position of the form is always out of my interface, which is good. There are dozens of such MCRProgramIt is based on facts.
Createdialog unwrapuidialog pos: ppkw style: # (# style_border)

If (hpkw = 0) then -- the height and
(
Unwrapuidialog. Height = 0
)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.