|
// *****************************************************************************
//
// (c) Crownwood Consulting Limited 2002-2003
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of Crownwood Consulting
// Limited, Crownwood, Bracknell, Berkshire, England and are supplied subject
// to licence terms.
//
// Magic Version 1.7.4.0 www.dotnetmagic.com
// *****************************************************************************
using System;
using System.Drawing;
using System.Windows.Forms;
using Crownwood.Magic.Common;
namespace Crownwood.Magic.Docking
{
public class HotZone
{
// Class constants
protected static int _dragWidth = 4;
// Instance fields
protected Rectangle _hotArea;
protected Rectangle _newSize;
public HotZone(Rectangle hotArea, Rectangle newSize)
{
// Store initial state
_hotArea = hotArea;
_newSize = newSize;
}
public Rectangle HotArea
{
get { return _hotArea; }
}
public Rectangle NewSize
{
get { return _newSize; }
}
public virtual bool ApplyChange(Point screenPos, Redocker parent) { return false; }
public virtual void UpdateForMousePosition(Point screenPos, Redocker parent) {}
public virtual void DrawIndicator(Point mousePos)
{
DrawReversible(_newSize);
}
public virtual void RemoveIndicator(Point mousePos)
{
DrawReversible(_newSize);
}
public virtual void DrawReversible(Rectangle rect)
{
DrawHelper.DrawDragRectangle(rect, _dragWidth);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
My name is Daniel and I am from Austria.
When I was in High School, all I wanted to do was programming. After finishing High School, I joined a company for which I wrote a project management utility in Visual Basic 6. It was then that I realised that programming all day long was nothing I wanted to do for the rest of my life.
I quit the job and started to study computer and media security at polytechnical university in Hagenberg/Austria.
As of now, I'm still studying. I still like to program, as long as I can do something else too. Recently I switched my favorite programming language to c#. Together with a friend from university, we started a project where we implement OpenPGP (RFC2440) in c#.