long style,
const wxString& name)
{
- if ( !wxNonOwnedWindow::Create(parent, id, pos, size, style, name) )
+ int w = WidthDefault(size.x);
+ int h = HeightDefault(size.y);
+
+ if ( !wxNonOwnedWindow::Create(parent, id, pos, wxSize(w,h), style, name) )
return false;
wxWindow::SetLabel( title ) ;
void wxTopLevelWindowMac::SetTitle(const wxString& title)
{
wxWindow::SetLabel( title ) ;
- m_nowpeer->SetTitle(title, GetFont().GetEncoding() );
+ if ( m_nowpeer )
+ m_nowpeer->SetTitle(title, GetFont().GetEncoding() );
}
wxString wxTopLevelWindowMac::GetTitle() const
return wxWindow::GetLabel();
}
+void wxTopLevelWindowMac::ShowWithoutActivating()
+{
+ // wxTopLevelWindowBase is derived from wxNonOwnedWindow, so don't
+ // call it here.
+ if ( !wxWindow::Show(true) )
+ return;
+
+ m_nowpeer->ShowWithoutActivating();
+
+ // TODO: Should we call EVT_SIZE here?
+}
+
bool wxTopLevelWindowMac::ShowFullScreen(bool show, long style)
{
return m_nowpeer->ShowFullScreen(show, style);
{
return m_nowpeer->RequestUserAttention(flags);
}
+
+bool wxTopLevelWindowMac::IsActive()
+{
+ return m_nowpeer->IsActive();
+}
+
+void wxTopLevelWindowMac::OSXSetModified(bool modified)
+{
+ m_nowpeer->SetModified(modified);
+}
+
+bool wxTopLevelWindowMac::OSXIsModified() const
+{
+ return m_nowpeer->IsModified();
+}