Esempio n. 1
0
        public HotZone Add(HotZone value)
        {
            // Use base class to process actual collection operation
            base.List.Add(value as object);

            return value;
        }
Esempio n. 2
0
        protected void InternalConstruct(Control callingControl,
            Source source,
            Content c,
            WindowContent wc,
            FloatingForm ff,
            DockingManager dm,
            Point offset)
        {
            // Store the starting state
            _callingControl = callingControl;
            _source = source;
            _content = c;
            _windowContent = wc;
            _dockingManager = dm;
            _container = _dockingManager.Container;
            _floatingForm = ff;
            _hotZones = null;
            _currentHotZone = null;
            _insideRect = new Rectangle();
            _outsideRect = new Rectangle();
            _offset = offset;

            // Begin tracking straight away
            EnterTrackingMode();
        }
Esempio n. 3
0
        public override void OnMouseMove(MouseEventArgs e)
        {
            if (_callingControl.Handle != IntPtr.Zero)
            {
                // Convert from Control coordinates to screen coordinates
                Point mousePos = _callingControl.PointToScreen(new Point(e.X, e.Y));

                // Find HotZone this position is inside
                HotZone hz = _hotZones.Contains(mousePos);

                if (hz != _currentHotZone)
                {
                    if (_currentHotZone != null)
                        _currentHotZone.RemoveIndicator(mousePos);

                    _currentHotZone = hz;

                    if (_currentHotZone != null)
                        _currentHotZone.DrawIndicator(mousePos);
                }
                else
                {
                    if (_currentHotZone != null)
                        _currentHotZone.UpdateForMousePosition(mousePos, this);
                }
            }

            base.OnMouseMove(e);
        }
Esempio n. 4
0
        protected void InternalConstruct(Control callingControl, 
                                         Source source, 
                                         Content c, 
                                         WindowContent wc, 
                                         FloatingForm ff,
                                         DockingManager dm,
                                         Point offset)
        {
            // Store the starting state
            _callingControl = callingControl;
            _source = source;
            _content = c;
            _windowContent = wc;
            _dockingManager = dm;
            _container = _dockingManager.Container;
            _floatingForm = ff;
            _hotZones = null;
            _currentHotZone = null;
            _insideRect = new Rectangle();
            _outsideRect = new Rectangle();
            _offset = offset;

            // Begin tracking straight away
            EnterTrackingMode();
        }
Esempio n. 5
0
        public override void OnMouseMove(MouseEventArgs e)
        {
            if (_callingControl.Handle != IntPtr.Zero)
            {
                // Convert from Control coordinates to screen coordinates
                Point mousePos = _callingControl.PointToScreen(new Point(e.X, e.Y));

                // Find HotZone this position is inside
                HotZone hz = _hotZones.Contains(mousePos);

                if (hz != _currentHotZone)
                {
                    if (_currentHotZone != null)
                        _currentHotZone.RemoveIndicator(mousePos);

                    _currentHotZone = hz;

                    if (_currentHotZone != null)
                        _currentHotZone.DrawIndicator(mousePos);
                }
                else
                {
                    if (_currentHotZone != null)
                        _currentHotZone.UpdateForMousePosition(mousePos, this);
                }
            }

            base.OnMouseMove(e);
        }
Esempio n. 6
0
 public void Remove(HotZone value)
 {
     // Use base class to process actual collection operation
     base.List.Remove(value as object);
 }
Esempio n. 7
0
 public void Insert(int index, HotZone value)
 {
     // Use base class to process actual collection operation
     base.List.Insert(index, value as object);
 }
Esempio n. 8
0
 public int IndexOf(HotZone value)
 {
     // Find the 0 based index of the requested entry
     return base.List.IndexOf(value);
 }
Esempio n. 9
0
 public bool Contains(HotZone value)
 {
     // Use base class to process actual collection operation
     return base.List.Contains(value as object);
 }
Esempio n. 10
0
 public void AddRange(HotZone[] values)
 {
     // Use existing method to add each array entry
     foreach(HotZone page in values)
         Add(page);
 }