Share

BalloonWindow Library for .NET

Tracker: Bugs

5 Flicker on first movement of underlying control - ID: 803257
Last Update: Comment added ( 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);

}
}


Steven Dzilvelis ( snurf_co ) - 2003-09-09 16:00

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2005-09-20 18:19
Sender: prillingProject Admin

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.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.