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; } get { return _Attachment; }
set { _Attachment = value; this.Refresh(); } 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; private ExpanderStyle _MyExpanderStyle = ExpanderStyle.Square;
public ExpanderStyle MyExpanderStyle public ExpanderStyle MyExpanderStyle
{ {
@ -184,15 +190,18 @@ namespace Volian.Controls.Library
{ {
if (Attachment) if (Attachment)
{ {
PointF[] myArrow = new PointF[7]; if (!AutoTOC)
myArrow[0] = new PointF(7 * weight, 3 * weight); {
myArrow[1] = new PointF(11 * weight, 6 * weight); PointF[] myArrow = new PointF[7];
myArrow[2] = new PointF(7 * weight, 9 * weight); myArrow[0] = new PointF(7 * weight, 3 * weight);
myArrow[3] = new PointF(7 * weight, 7 * weight); myArrow[1] = new PointF(11 * weight, 6 * weight);
myArrow[4] = new PointF(2 * weight, 7 * weight); myArrow[2] = new PointF(7 * weight, 9 * weight);
myArrow[5] = new PointF(2 * weight, 5 * weight); myArrow[3] = new PointF(7 * weight, 7 * weight);
myArrow[6] = new PointF(7 * weight, 5 * weight); myArrow[4] = new PointF(2 * weight, 7 * weight);
e.Graphics.FillPolygon(bBackground, myArrow); myArrow[5] = new PointF(2 * weight, 5 * weight);
myArrow[6] = new PointF(7 * weight, 5 * weight);
e.Graphics.FillPolygon(bBackground, myArrow);
}
} }
else else
{ {