Skip to content

Disabling display of message on dropdown until a solution that works for Rhino7 is found #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Grasshopper_UI/CustomAttributes/PrototypeValueListAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ protected override void Render(GH_Canvas canvas, Graphics graphics, GH_CanvasCha
if(Visible)
this.RenderPrototypeLabel(graphics, m_LabelBounds, false, false, true);

string message = (this.Owner as CallerValueList)?.Message;

if (!string.IsNullOrWhiteSpace(message))
{
GH_PaletteStyle impliedStyle = GH_CapsuleRenderEngine.GetImpliedStyle(GH_Palette.Normal, this.Selected, base.Owner.Locked, base.Owner.Hidden);
GH_Capsule capsule = GH_Capsule.CreateCapsule(Bounds, GH_Palette.Normal);
capsule.RenderEngine.RenderMessage(graphics, message, impliedStyle);
}
//string message = (this.Owner as CallerValueList)?.Message;

//if (!string.IsNullOrWhiteSpace(message))
//{
// GH_PaletteStyle impliedStyle = GH_CapsuleRenderEngine.GetImpliedStyle(GH_Palette.Normal, this.Selected, base.Owner.Locked, base.Owner.Hidden);
// GH_Capsule capsule = GH_Capsule.CreateCapsule(Bounds, GH_Palette.Normal);
// capsule.RenderEngine.RenderMessage(graphics, message, impliedStyle);
//}
}

/*******************************************/
Expand Down