Grasshopper

algorithmic modeling for Rhino

Hello everyone,

I'm trying to create a custom component(C# vs2012), that has customAtrributes that overwrite default fonts and text size of a component.

I managed to create a custom button that has a custom font/size by using the method " GH_Capsule capsule = GH_Capsule.CreateTextCapsule(this.buttonArea, this.textArea, GH_Palette.Black, "Reset", GH_FontServer.Small, 1, 9); ".

Can somebody help me with what methods I should implement in order to change the default text fonts and size of input/output parameters??

thank you!

Views: 320

Replies are closed for this discussion.

Replies to This Discussion

Well, that'll be pretty much everything. You have to override the Layout and the Render methods on the attributes. And you either have to override the input and output parameter attributes or decide to not call them. But that also means you have to draw the correct state tags for all inputs and outputs.

Are you really sure you want to invest a month of your life into making something look different from the standard?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service