FIX positioning problems with carbon media control - CreateMovieControl positioning is broken in that it resizes to the WindowRef parent, not its real one [thus making you wonder if EmbedControl even _works_ with CreateMovieControl], so we do our own.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-02-04 22:24:14 +00:00
parent 9b433fceec
commit 4b60077b40

View File

@@ -625,8 +625,8 @@ wxSize wxQTMediaBackend::GetVideoSize() const
//---------------------------------------------------------------------------
// wxQTMediaBackend::Move
//
// If not using a native 10.2 QT control performs some emulated window
// movement stuff
// We need to do this even when using native qt control because
// CreateMovieControl is broken in this regard...
//---------------------------------------------------------------------------
void wxQTMediaBackend::Move(int x, int y, int w, int h)
{
@@ -643,6 +643,15 @@ void wxQTMediaBackend::Move(int x, int y, int w, int h)
::SetMovieBox(m_movie, &theRect);
wxASSERT(::GetMoviesError() == noErr);
}
#else
if(m_timer && m_ctrl)
{
m_ctrl->GetParent()->MacWindowToRootWindow(&x, &y);
::MoveControl( (ControlRef) m_ctrl->GetHandle(), x, y );
m_ctrl->GetParent()->Refresh();
m_ctrl->GetParent()->Update();
}
#endif
}