This commit is contained in:
Kathy Ruffing 2012-01-27 12:44:42 +00:00
parent d12adf6ace
commit 9ec318366c

View File

@ -120,6 +120,12 @@ namespace Volian.Controls.Library
get { return _Attachment; }
set { _Attachment = value; this.Refresh(); }
}
private bool _AutoTOC = false;
public bool AutoTOC
{
get { return _AutoTOC; }
set { _AutoTOC = value; this.Refresh(); }
}
private ExpanderStyle _MyExpanderStyle = ExpanderStyle.Square;
public ExpanderStyle MyExpanderStyle
{
@ -183,6 +189,8 @@ namespace Volian.Controls.Library
private void DrawInterior(PaintEventArgs e, Brush bBackground, Brush bForeground, float weight, float radius, float diameter)
{
if (Attachment)
{
if (!AutoTOC)
{
PointF[] myArrow = new PointF[7];
myArrow[0] = new PointF(7 * weight, 3 * weight);
@ -194,6 +202,7 @@ namespace Volian.Controls.Library
myArrow[6] = new PointF(7 * weight, 5 * weight);
e.Graphics.FillPolygon(bBackground, myArrow);
}
}
else
{
e.Graphics.FillRectangle(bForeground, 2 * weight, radius - weight, diameter - 4 * weight, weight * 2);