Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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(); }
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.