SetInitialSize( wxSize(m_minWidth, m_minHeight));
SendSizeEventToParent();
- wxWindow * const parent = GetParent();
- if ( parent && !parent->IsBeingDeleted() )
- parent->MacOnInternalSize();
return true;
}
wxUnusedVar(progress);
m_win->SendSizeEvent();
- m_win->MacOnInternalSize();
}
- (void)animationDidEnd:(NSAnimation*)animation
// refresh it once again after the end to ensure that everything is in
// place
win->SendSizeEvent();
- win->MacOnInternalSize();
}
[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
- MacOnInternalSize();
- wxSizeEvent event(GetSize(), m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
+ SendSizeEvent();
}
return true;
void wxNonOwnedWindow::HandleResized( double timestampsec )
{
- MacOnInternalSize();
- wxSizeEvent wxevent( GetSize() , GetId());
- wxevent.SetTimestamp( (int) (timestampsec * 1000) );
- wxevent.SetEventObject( this );
- HandleWindowEvent(wxevent);
+ SendSizeEvent();
// 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
- MacOnInternalSize();
- wxSizeEvent event(GetSize() , m_windowId);
- event.SetEventObject(this);
- HandleWindowEvent(event);
+ SendSizeEvent();
}
return true ;
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)