コード例 #1
0
        private void MoveToButtonLocation(IntPtr handle, Rectangle bounds)
        {
            var location = new Point(frmStudioMain.SceneControl.ParentForm.Left + this.ParentControl.Location.X - this.Width - this.ToolTipOffsetX + 4, frmStudioMain.SceneControl.ParentForm.Top + this.ParentControl.Top + (int)this.Tracker._trackerRect.Y + ((int)this.Tracker._trackerRect.Height / 2) + 70 + 23);

            NATIVE.MoveWindow(handle, location.X, location.Y, bounds.Width, bounds.Height, false);
        }
コード例 #2
0
        private void MoveToButtonLocation(IntPtr handle, Rectangle bounds)
        {
            var location = new Point(this.ParentToolbar.ParentForm.Left + this.ParentToolbar.Location.X - this.Width - this.ToolTipOffsetX, this.ParentToolbar.ParentForm.Top + this.ParentToolbar.Location.Y + 70 + this.Button.Location.Y + this.Button.Bounds.Height - 3);

            NATIVE.MoveWindow(handle, location.X, location.Y, bounds.Width, bounds.Height, false);
        }