git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74097
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
SetInitialSize( wxSize(m_minWidth, m_minHeight));
SendSizeEventToParent();
SetInitialSize( wxSize(m_minWidth, m_minHeight));
SendSizeEventToParent();
- wxWindow * const parent = GetParent();
- if ( parent && !parent->IsBeingDeleted() )
- parent->MacOnInternalSize();
wxUnusedVar(progress);
m_win->SendSizeEvent();
wxUnusedVar(progress);
m_win->SendSizeEvent();
- m_win->MacOnInternalSize();
}
- (void)animationDidEnd:(NSAnimation*)animation
}
- (void)animationDidEnd:(NSAnimation*)animation
// refresh it once again after the end to ensure that everything is in
// place
win->SendSizeEvent();
// refresh it once again after the end to ensure that everything is in
// place
win->SendSizeEvent();
- win->MacOnInternalSize();
}
[anim setDelegate:nil];
}
[anim setDelegate:nil];
{
// as apps expect a size event to occur when the window is shown,
// generate one when it is shown with effect too
{
// as apps expect a size event to occur when the window is shown,
// generate one when it is shown with effect too
- MacOnInternalSize();
- wxSizeEvent event(GetSize(), m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
void wxNonOwnedWindow::HandleResized( double timestampsec )
{
void wxNonOwnedWindow::HandleResized( double timestampsec )
{
- MacOnInternalSize();
- wxSizeEvent wxevent( GetSize() , GetId());
- wxevent.SetTimestamp( (int) (timestampsec * 1000) );
- wxevent.SetEventObject( this );
- HandleWindowEvent(wxevent);
// we have to inform some controls that have to reset things
// relative to the toplevel window (e.g. OpenGL buffers)
wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
// we have to inform some controls that have to reset things
// relative to the toplevel window (e.g. OpenGL buffers)
wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
if ( show )
{
// because apps expect a size event to occur at this moment
if ( show )
{
// because apps expect a size event to occur at this moment
- MacOnInternalSize();
- wxSizeEvent event(GetSize() , m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
m_nowpeer->ShowWithoutActivating();
m_nowpeer->ShowWithoutActivating();
- // TODO: Should we call EVT_SIZE here?
+ // because apps expect a size event to occur at this moment
+ SendSizeEvent();
}
bool wxTopLevelWindowMac::ShowFullScreen(bool show, long style)
}
bool wxTopLevelWindowMac::ShowFullScreen(bool show, long style)