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
    • Admin
    • Login

    Do I get a msg when I resize a dialog?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 346 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 22/01/2016 at 11:01, xxxxxxxx wrote:

      Hey guys, 
      so here is my question:
      I have a dialog with a GeUserArea wich is deisplaying an image that is rendered with RenderDocument().
      But I don't want, that my image rerenders when I am changin the size of my Dialog window (wich is currently happening every time I resize my Dialog). So I wanted to ask if I get a msg when I resize my dialog to catch this msg.

      Hope everything is clear.

      greetings, 
      neon

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

        On 22/01/2016 at 14:57, xxxxxxxx wrote:

        Using this method in your GeDialog class will send a message if the users changes the size of the dialog.

            def Message(self, msg, result) :   
           
              if msg.GetId() == c4d.BFM_ADJUSTSIZE:   
                  print("Changing Dialog Dimensions")  
                
              return gui.GeDialog.Message(self, msg, result) 
        

        -ScottA

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

          On 23/01/2016 at 08:07, xxxxxxxx wrote:

          Hi ScottA,

          thank you for your reply, it is working ^^

          grettings, 
          neon

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