Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    GeDialog Dimensions

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 358 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 11/06/2013 at 23:59, xxxxxxxx wrote:

      Is there a way to get the dimensions of a dialog window as it's being resized. I've tried various ways with no luck.

      I've tried using a GeUserArea and its various methods but nothing. Might be overlooking something.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 12/06/2013 at 02:53, xxxxxxxx wrote:

        Hi, use a outer group and then use GetDim on that.

        Cheers, Seb

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 12/06/2013 at 03:02, xxxxxxxx wrote:

          Nice! I will give it a try.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 14/06/2013 at 09:14, xxxxxxxx wrote:

            Why not use GeUserArea.Sized(self, w, h) or drawmsg is called after an re-size with the new dimensions.

            GeUserArea.DrawMsg(self, x1, y1, x2, y2, msg)[](file:///D:/pgrooff/Documents/pim/c4d/Python%20Help%20R14/help/modules/c4d.gui/GeUserArea/index.html?highlight=drawmsg#GeUserArea.DrawMsg)

            Called when C4D wants you to draw your userarea. Use the drawing functions to update your user area in the region speicified by the rectangle from (x1,y1) to (x2,y2).
            Parameters:|

            • x1  (int) – The upper left x coordinate.
            • y1  (int) – The upper left y coordinate.
            • x2  (int) – The lower right x coordinate.
            • y2  (int) – The lower right y coordinate.

            ---|---
            _<_t_>_

            1 Reply Last reply Reply Quote 0
            • First post
              Last post