// Author: David Elliott
// Modified by:
// Created: 2002/12/15
-// RCS-ID: $Id:
+// RCS-ID: $Id$
// Copyright: 2002 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
if (parent)
parent->AddChild(this);
- NSRect cocoaRect = NSMakeRect(300,300,200,200);
+ unsigned int cocoaStyle = NSWindowStyleForWxStyle(style);
- unsigned int cocoaStyle = 0;
- cocoaStyle |= NSTitledWindowMask;
- cocoaStyle |= NSClosableWindowMask;
- cocoaStyle |= NSMiniaturizableWindowMask;
- cocoaStyle |= NSResizableWindowMask;
+ NSRect cocoaRect = MakeInitialNSWindowContentRect(pos,size,cocoaStyle);
m_cocoaNSWindow = NULL;
SetNSPanel([[NSPanel alloc] initWithContentRect:cocoaRect styleMask:cocoaStyle backing:NSBackingStoreBuffered defer:NO]);
if(show)
{
wxAutoNSAutoreleasePool pool;
+
+ if (CanDoLayoutAdaptation())
+ DoLayoutAdaptation();
+
InitDialog();
if(IsModal())
{ // ShowModal() will show the dialog
SetReturnCode(retCode);
Show(false);
}
-