private StatusBarPanelBorderStyle border_style = StatusBarPanelBorderStyle.Sunken;
private StatusBarPanelStyle style = StatusBarPanelStyle.Text;
private int width = 100;
- private int twidth = -1;
private int min_width = 10;
internal int X;
#endregion // Local Variables
min_width = value;
if (min_width > width)
width = min_width;
+
Invalidate ();
}
}
throw new ArgumentException ("value");
if (initializing)
- twidth = value;
+ width = value;
else
SetWidth(value);
public void EndInit ()
{
- if (!initializing || twidth == -1)
+ if (!initializing)
return;
-
- SetWidth(twidth);
- twidth = -1;
+
+ if (min_width > width)
+ width = min_width;
+
initializing = false;
}
}