use a default position for frames and in some cases a default size as well (otherwise the menubar is partially hidden (with MSW) due to too small frame height)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
wxImage::AddHandler(new wxPNGHandler);
|
wxImage::AddHandler(new wxPNGHandler);
|
||||||
// Create the main application window
|
// Create the main application window
|
||||||
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
|
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
|
||||||
wxPoint(50, 50), wxSize(150, 50));
|
wxDefaultPosition, wxDefaultSize);
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
|
@@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
// Create the main application window
|
// Create the main application window
|
||||||
MyFrame *frame = new MyFrame(_("HTML Help Sample"),
|
MyFrame *frame = new MyFrame(_("HTML Help Sample"),
|
||||||
wxPoint(50, 50), wxSize(150, 50));
|
wxDefaultPosition, wxDefaultSize);
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
|
@@ -140,7 +140,7 @@ bool MyApp::OnInit()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
MyFrame *frame = new MyFrame(_("Printing test"),
|
MyFrame *frame = new MyFrame(_("Printing test"),
|
||||||
wxPoint(150, 50), wxSize(640, 480));
|
wxDefaultPosition, wxSize(640, 480));
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
|
@@ -162,7 +162,7 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
|
|||||||
{
|
{
|
||||||
// Create the main application window
|
// Create the main application window
|
||||||
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
|
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
|
||||||
wxPoint(50, 50), wxSize(640, 480));
|
wxDefaultPosition, wxSize(640, 480));
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
|
@@ -154,7 +154,7 @@ bool MyApp::OnInit()
|
|||||||
{
|
{
|
||||||
// Create the main application window
|
// Create the main application window
|
||||||
MyFrame *frame = new MyFrame( _("wxHtmlWindow testing application"),
|
MyFrame *frame = new MyFrame( _("wxHtmlWindow testing application"),
|
||||||
wxPoint(50, 50), wxSize(640, 480) );
|
wxDefaultPosition, wxSize(640, 480) );
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
|
@@ -113,7 +113,7 @@ bool MyApp::OnInit()
|
|||||||
|
|
||||||
// Create the main application window
|
// Create the main application window
|
||||||
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
|
MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"),
|
||||||
wxPoint(50, 50), wxSize(640, 480) );
|
wxDefaultPosition, wxSize(640, 480) );
|
||||||
|
|
||||||
// Show it and tell the application that it's our main window
|
// Show it and tell the application that it's our main window
|
||||||
// @@@ what does it do exactly, in fact? is it necessary here?
|
// @@@ what does it do exactly, in fact? is it necessary here?
|
||||||
|
Reference in New Issue
Block a user