fixes for various controls to remove or show focus indication when the window active status changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15362 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -554,9 +554,14 @@ void
|
||||
BTextControl::WindowActivated(bool active)
|
||||
{
|
||||
if (fText->IsFocus()) {
|
||||
BRect rect(fText->Frame());
|
||||
rect.InsetBy(-1.0, -1.0);
|
||||
// invalidate to remove/show focus indication
|
||||
BRect rect = Bounds();
|
||||
rect.left = fDivider;
|
||||
Invalidate(rect);
|
||||
|
||||
// help out embedded text view which doesn't
|
||||
// get notified of this
|
||||
fText->Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user