first commit
This commit is contained in:
36
ICSharpCode.TextEditor/Project/Src/Util/TipSpacer.cs
Normal file
36
ICSharpCode.TextEditor/Project/Src/Util/TipSpacer.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="none" email=""/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
namespace ICSharpCode.TextEditor.Util
|
||||
{
|
||||
class TipSpacer: TipSection
|
||||
{
|
||||
SizeF spacerSize;
|
||||
|
||||
public TipSpacer(Graphics graphics, SizeF size): base(graphics)
|
||||
{
|
||||
spacerSize = size;
|
||||
}
|
||||
|
||||
public override void Draw(PointF location)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected override void OnMaximumSizeChanged()
|
||||
{
|
||||
base.OnMaximumSizeChanged();
|
||||
|
||||
SetRequiredSize(new SizeF
|
||||
(Math.Min(MaximumSize.Width, spacerSize.Width),
|
||||
Math.Min(MaximumSize.Height, spacerSize.Height)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user