/// <summary> /// ctor /// </summary> public MiniTracker() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true); _tracker = new ElementInfo(); _tracker.State = ElementState.hot; _tracker.Bounds = new Rectangle(0, this.Height/2 - 7, 11, 20); toolTip = new ToolTip(); MouseHover += MiniTracker_MouseHover; MouseLeave += MiniTracker_MouseLeave; ValueChanged += MiniTracker_ValueChanged; UpdateTrackerPosition(); }
/// <summary> /// ctor /// </summary> public MiniTracker() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true); _tracker = new ElementInfo(); _tracker.State = ElementState.hot; _tracker.Bounds = new Rectangle(0, this.Height/2 - 7, 11, 20); UpdateTrackerPosition(); }