Open yd021976 opened 5 days ago
FYI, I found what's is wrong, and potentially a bug.
As soon as the control (i.e. In my case the pixelLayout control) is set to Visible=false
somewhere in the code, when I change size of container (PixelLayout) controls, NSTrackingArea is never updated (the location is OK, and the Size property of ETO Objects are right too)
As a workaround, I don't use Visible
property but use native "AlphaValue" to hide PixelLayout object.
I think there is a bug.
Expected Behavior
When moving and resizing a control in a pixelLayout, control "NSTrackingArea" should be updated
Actual Behavior
NSTracking Area is only updated the first time the control is sized or moved. Any later move or resize will never update tracking area. So mouseover and other mouse events doesn't fire correctly (i.e. AS the tracking area does not reflect control size)
Steps to Reproduce the Problem
See the bunch of code below. Each time I call the show method, I compute random location and size for Button control (to make it simpler). First time the method is called, everything is OK because NSTracking area is correctly initialized with the size of the button control. Any further calls will resize et re-position buttons control => NStracking area is still seated to the first size of button control and is never updated. So some controls have bad area to track mouse move/enter/leave.
Code that Demonstrates the Problem
Specifications