Grasshopper

algorithmic modeling for Rhino

Hello,

Is there a way to control the size of a text panel (the yellow sticky) when it is attached to a component?

I have been able to set the attributes of other components and have found controls for text panel color but as of yet haven't been able to track down any attributes that relate to the height and width of a panel.

Thanks in advance.

Views: 690

Replies to This Discussion

Try manipulating the GH_Panel's Attributes.Bounds property. You can assign it a new RectangleF. You'll also want to call its Attributes.ExpireLayout() method to force it to redraw.

Andrew,

Thanks. This area of GH is all very new to me. 

Your lead has been helpful in searching the discussion archive and I think that I understand the basic idea but I have a couple of small questions.

1. How does one assign the rectanglef box to a panel object?

and

2. Would you be kind enough to point me toward a code example of the assignment?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service