BWindow's frame events hooks work now. Frame gets updated on window move/resize.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12073 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -704,8 +704,10 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
|
|
||||||
msg->FindFloat("width", &width);
|
msg->FindFloat("width", &width);
|
||||||
msg->FindFloat("height", &height);
|
msg->FindFloat("height", &height);
|
||||||
|
|
||||||
ResizeTo(width,height);
|
fFrame.right = fFrame.left + width;
|
||||||
|
fFrame.bottom = fFrame.top + height;
|
||||||
|
|
||||||
FrameResized(width,height);
|
FrameResized(width,height);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -714,8 +716,9 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
BPoint origin;
|
BPoint origin;
|
||||||
|
|
||||||
msg->FindPoint("where", &origin);
|
msg->FindPoint("where", &origin);
|
||||||
|
|
||||||
MoveTo( origin );
|
fFrame.OffsetTo(origin);
|
||||||
|
|
||||||
FrameMoved( origin );
|
FrameMoved( origin );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user