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

    Redraw() COFFEE

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 295 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 03/03/2008 at 06:10, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;  C++  ;

      ---------
      Iam not able to redraw my user area when I call this GerUserHeight function.  I think this may be a similar problem to the Async Bounce example I was talking about in a previous post.
      MyUserArea::GetUserHeight()
      {
       println(hrows);
       return hrows*3;
       Redraw();
       
      }
      MyUserArea::Draw(x1,y1,x2,y2)
      {
       var w = GetWidth()-20;
       var h = GetHeight()-1;
       var tw = DrawGetTextWidth(text)/2;
       OffScreenOn();
       SetClippingRegion(x1,y1,x2,y2);
       DrawSetPen(COLOR_BG);
       DrawRectangle(x1,y1,x2,y2);
       //DrawSetTextPen(col,COLOR_BG);
       //DrawText(text,px-tw,py-th);
       DrawSetPen(vector(0.0,0.8,0.0));
       DrawLine(0,0,w,0);
       DrawLine(w,0,w,h);
       DrawLine(w,h,0,h);
       DrawLine(0,h,0,0);
      }
      oDialog::NewRows()
      {
       hrows=hrows+10;
       println(hrows);
       ua->GetUserHeight();
      }

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 03/03/2008 at 12:31, xxxxxxxx wrote:

        I figured it out. I had to add LayoutChange(user area id) to the NewRows function.

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