When it gets a B_ENTERED_VIEW transit in MouseMoved(), it will now use a different
color. In BeOS, a view gets a MouseMoved() with B_ENTERED_VIEW when the window is opened under the mouse cursor (not yet in Haiku). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15227 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
17adc30b57
commit
c7bba5ca04
@ -96,7 +96,11 @@ View::MouseDown(BPoint where)
|
||||
void
|
||||
View::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)
|
||||
{
|
||||
SetHighColor(0, 0, 150);
|
||||
if (transit == B_ENTERED_VIEW)
|
||||
SetHighColor(0, 150, 150);
|
||||
else
|
||||
SetHighColor(0, 0, 150);
|
||||
|
||||
Invalidate();
|
||||
Window()->SetPulseRate(10000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user