I’m developing a plugin for Rhino 6 and I’m using Eto for the UI. I have a ColorPicker added to a DynamicLayout and in some workstations the control doesn’t show up at all. I’m running 6.31 version, but different PCs with same Rhino version works just fine, and others with older versions have the same problem
I’m doing nothing different from usual, at least I think so.
var errorColor = Settings.ErrorColor;
m_errorColorPick = new ColorPicker() {
Value = Color.FromArgb(errorColor.R, errorColor.G, errorColor.B)
};
m_errorLabel = new Label();
var colorsLayout = new DynamicLayout();
colorsLayout.Padding = new Padding(5);
colorsLayout.BeginVertical(new Padding(5), new Size(5, 5));
colorsLayout.AddRow(m_errorColorPick, m_errorLabel);
colorsLayout.EndVertical();
var groupBox = new GroupBox() {
Text = "Colors",
Content = colorsLayout
};
return groupBox;
Then the groupBox is set as Content of another layout.
Do you see the GroupBox in your other layout? Also, it might be that you are adding that GroupBox to a scaled section, in which case resizing the panel might cause the control to be visible or not.
sorry, I could have thought to put a screen of the result. There should be three color picker to the left of the three labels, they are all initialized likewise and added to the same DynamicLayout. The dialog isn’t resizable but that doesn’t seems to affect the problem