Darwin has commandline args.

Position controls right under Mac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2001-11-28 16:28:37 +00:00
parent 92749d6a37
commit 89ebf1c919
4 changed files with 946 additions and 948 deletions

View File

@@ -661,9 +661,10 @@ int wxEntry( int argc, char *argv[] , bool enterLoop )
wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
#ifdef __WXMAC__
#ifndef __DARWIN__
argc = 0 ; // currently we don't support files as parameters
#endif
// we could try to get the open apple events here to adjust argc and argv better
wxTheApp->argc = argc;
wxTheApp->argv = argv;
@@ -671,8 +672,6 @@ int wxEntry( int argc, char *argv[] , bool enterLoop )
// GUI-specific initialization, such as creating an app context.
wxEntryInitGui();
// we could try to get the open apple events here to adjust argc and argv better
// Here frames insert themselves automatically
// into wxTopLevelWindows by getting created

View File

@@ -661,9 +661,10 @@ int wxEntry( int argc, char *argv[] , bool enterLoop )
wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
#ifdef __WXMAC__
#ifndef __DARWIN__
argc = 0 ; // currently we don't support files as parameters
#endif
// we could try to get the open apple events here to adjust argc and argv better
wxTheApp->argc = argc;
wxTheApp->argv = argv;
@@ -671,8 +672,6 @@ int wxEntry( int argc, char *argv[] , bool enterLoop )
// GUI-specific initialization, such as creating an app context.
wxEntryInitGui();
// we could try to get the open apple events here to adjust argc and argv better
// Here frames insert themselves automatically
// into wxTopLevelWindows by getting created

View File

@@ -547,7 +547,7 @@ void wxControl::DoSetSize(int x, int y,
if (height == -1) new_height = size.y;
}
}
AdjustForParentClientOrigin(new_x, new_y, sizeFlags);
// AdjustForParentClientOrigin(new_x, new_y, sizeFlags);
mac_x = new_x;
mac_y = new_y;

View File

@@ -547,7 +547,7 @@ void wxControl::DoSetSize(int x, int y,
if (height == -1) new_height = size.y;
}
}
AdjustForParentClientOrigin(new_x, new_y, sizeFlags);
// AdjustForParentClientOrigin(new_x, new_y, sizeFlags);
mac_x = new_x;
mac_y = new_y;