Main window size and position is remembered now
This commit is contained in:
parent
ee7f94d776
commit
61af77e7b6
@ -50,7 +50,7 @@
|
|||||||
<property name="title">ZRCola</property>
|
<property name="title">ZRCola</property>
|
||||||
<property name="tooltip"></property>
|
<property name="tooltip"></property>
|
||||||
<property name="window_extra_style"></property>
|
<property name="window_extra_style"></property>
|
||||||
<property name="window_name"></property>
|
<property name="window_name">ZRCola</property>
|
||||||
<property name="window_style">wxTAB_TRAVERSAL</property>
|
<property name="window_style">wxTAB_TRAVERSAL</property>
|
||||||
<property name="xrc_skip_sizer">1</property>
|
<property name="xrc_skip_sizer">1</property>
|
||||||
<event name="OnActivate"></event>
|
<event name="OnActivate"></event>
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
#include "zrcolakeyhndlr.h"
|
#include "zrcolakeyhndlr.h"
|
||||||
|
|
||||||
#include <wx/msgdlg.h>
|
#include <wx/msgdlg.h>
|
||||||
|
#include <wx/persist.h>
|
||||||
|
#include <wx/persist/toplevel.h>
|
||||||
#include <wxex/common.h>
|
#include <wxex/common.h>
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
@ -52,7 +52,7 @@ bool ZRColaApp::OnInit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxZRColaFrame* mainFrame = new wxZRColaFrame();
|
wxZRColaFrame* mainFrame = new wxZRColaFrame();
|
||||||
|
wxPersistentRegisterAndRestore<wxTopLevelWindow>(mainFrame);
|
||||||
mainFrame->Show();
|
mainFrame->Show();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -22,7 +22,7 @@ wxHelpProvider::Set( new wxHelpControllerHelpProvider );
|
|||||||
static wxFBContextSensitiveHelpSetter s_wxFBSetTheHelpProvider;
|
static wxFBContextSensitiveHelpSetter s_wxFBSetTheHelpProvider;
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
wxZRColaFrameBase::wxZRColaFrameBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
|
wxZRColaFrameBase::wxZRColaFrameBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxFrame( parent, id, title, pos, size, style, name )
|
||||||
{
|
{
|
||||||
this->SetSizeHints( wxSize( 150,150 ), wxDefaultSize );
|
this->SetSizeHints( wxSize( 150,150 ), wxDefaultSize );
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class wxZRColaFrameBase : public wxFrame
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
wxZRColaFrameBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("ZRCola"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 600,400 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
|
wxZRColaFrameBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("ZRCola"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 600,400 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("ZRCola") );
|
||||||
|
|
||||||
~wxZRColaFrameBase();
|
~wxZRColaFrameBase();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user