Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Mouse1.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type MovingBox(r:Rectangle) =
with get () = box.X
and set(v) = box <- Rectangle(v, box.Y, box.Width, box.Height)
member this.Y
with get () = box.X
with get () = box.Y
and set(v) = box <- Rectangle(box.X, v, box.Width, box.Height)
member this.Location
with get() = Point(box.X, box.Y)
Expand All @@ -27,8 +27,8 @@ type MouseTest() as this =
inherit UserControl()

do
// this.SetStyle(ControlStyles.AllPaintingInWmPaint ||| ControlStyles.OptimizedDoubleBuffer, true)
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true)
this.SetStyle(ControlStyles.AllPaintingInWmPaint ||| ControlStyles.OptimizedDoubleBuffer, true)
//this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true)

let boxes = ResizeArray<MovingBox>()
let mutable box = Rectangle(50, 50, 100, 100)
Expand Down