git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11915
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
: wxFrame((wxFrame *)NULL, -1, "wxWindows menu sample",
wxDefaultPosition, wxSize(300, 200))
{
: wxFrame((wxFrame *)NULL, -1, "wxWindows menu sample",
wxDefaultPosition, wxSize(300, 200))
{
m_menu = NULL;
m_countDummy = 0;
m_logOld = NULL;
m_menu = NULL;
m_countDummy = 0;
m_logOld = NULL;
void MyFrame::OnSize(wxSizeEvent& event)
{
void MyFrame::OnSize(wxSizeEvent& event)
{
+ if ( !m_textctrl )
+ return;
+
// leave a band below for popup menu testing
wxSize size = GetClientSize();
m_textctrl->SetSize(0, 0, size.x, (3*size.y)/4);
// leave a band below for popup menu testing
wxSize size = GetClientSize();
m_textctrl->SetSize(0, 0, size.x, (3*size.y)/4);