Flicker on first movement of underlying control
Status: Beta
Brought to you by:
prilling
If the BalloonWindow is attached to a control, and the
form with that control is moved, the first repaint of the
BalloonWindow draws it in the middle of the screen.
This is due to the __targetControlRect variable in
TrackLayoutHandler not being initialized the first time.
I've fixed it in my source code by adding the following
code to the TargetControl property handler:
if(MoveWithTarget)
{
if(value == null)
UnregisterLayoutTracking(__targetControl);
else
{
RegisterLayoutTracking(value);
// fix for flicker
__targetControlRect =
value.RectangleToScreen(value.Bounds);
}
}
Logged In: YES
user_id=836002
Thanks. I am currently decoupling many of the algorithms
and this should not be a problem in the next release.