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:
parent
867b420067
commit
27e3da2fac
@ -704,8 +704,10 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
||||
|
||||
msg->FindFloat("width", &width);
|
||||
msg->FindFloat("height", &height);
|
||||
|
||||
ResizeTo(width,height);
|
||||
|
||||
fFrame.right = fFrame.left + width;
|
||||
fFrame.bottom = fFrame.top + height;
|
||||
|
||||
FrameResized(width,height);
|
||||
break;
|
||||
}
|
||||
@ -714,8 +716,9 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
||||
BPoint origin;
|
||||
|
||||
msg->FindPoint("where", &origin);
|
||||
|
||||
MoveTo( origin );
|
||||
|
||||
fFrame.OffsetTo(origin);
|
||||
|
||||
FrameMoved( origin );
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user