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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GeUserArea::Redraw(0);

    SDK Help
    0
    4
    371
    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
      Helper
      last edited by

      On 25/11/2013 at 02:32, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R14 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi Folks,

      I have a few GeUserAreas in a dialog and some of them just won't redraw with the MyUserArea.Redraw(0) call - yet LayoutChanged() works fine.

      Is there anything known that might cause this to happen?

      WP.

      P.S. I pass on my thanks in advance in case I can't get back on for a while - our 'national broadband network' rollout here in Australia is leaving many of us without internet connections, making life rather difficult for those who need it in order to work..

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

        On 26/11/2013 at 06:30, xxxxxxxx wrote:

        I've never had issues with calling GeUserArea::Redraw(). Are you sure it is not being redrawn? Do you call
        it from any other but the main thread?

        PS: You should pass FALSE (or false since R15) rather than 0.

        Best,
        -Niklas

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

          On 28/11/2013 at 15:46, xxxxxxxx wrote:

          Hi Niklas,

          in order for the redraw to happen, I have to mouse click in that particular user area's window. When it refreshes, the draw is correct, but it's not doing the refresh/redraw on the Redraw(0) call.

          I'll go through the Redraw calls and change "0" to "FALSE" too, thanks.

          I have noticed though that this seems to only happen with one particular user area. There must be something I'm doing that revolves around that one. I'll have to look into this further.

          WP.

          P.S. I should mention I've put GePrint's into various areas of that user area and none print, hence knowing that it's not called to refresh.

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

            On 03/12/2013 at 00:22, xxxxxxxx wrote:

            Just an update here while I can for anyone with similar problems..

            I've managed to solve some of the Redraw(FALSE) refresh issues. It was to do with some enums that I had incorrectly numbered.

            I'm still getting some issues with a SetTimer() call to one user area, but the enum fix makes me think something similar is happening with this user area, so I'm digging around the code to see if I can spot any other possible conflicts!

            WP.

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