Fixes for wxUSE_STATUSBAR.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-19 09:39:38 +00:00
parent 1411f7eb1a
commit 67a9999283
17 changed files with 118 additions and 19 deletions

View File

@@ -76,9 +76,10 @@ MyFrame::MyFrame() :
wxFrame( (wxFrame *) NULL, wxID_ANY, _T("wxLayout"),
wxDefaultPosition, wxDefaultSize )
{
#if wxUSE_STATUSBAR
CreateStatusBar( 2 );
SetStatusText( _T("wxLayout by Karsten Ball<6C>der.") );
#endif // wxUSE_STATUSBAR
wxMenuBar *menu_bar = new wxMenuBar();
@@ -128,7 +129,9 @@ MyFrame::MyFrame() :
SetMenuBar( menu_bar );
m_lwin = new wxLayoutWindow(this);
#if wxUSE_STATUSBAR
m_lwin->SetStatusBar(GetStatusBar(), 0, 1);
#endif // wxUSE_STATUSBAR
m_lwin->SetMouseTracking(true);
m_lwin->SetEditable(true);
m_lwin->SetWrapMargin(40);