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:
@@ -96,7 +96,11 @@ View::MouseDown(BPoint where)
|
|||||||
void
|
void
|
||||||
View::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)
|
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();
|
Invalidate();
|
||||||
Window()->SetPulseRate(10000);
|
Window()->SetPulseRate(10000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user