Minor decorations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -88,9 +88,9 @@ END_EVENT_TABLE()
|
||||
SimpleTransientPopup::SimpleTransientPopup( wxWindow *parent ) :
|
||||
wxPopupTransientWindow( parent )
|
||||
{
|
||||
m_panel = new wxScrolledWindow( this, -1 );
|
||||
m_panel = new wxScrolledWindow( this, wxID_ANY );
|
||||
m_panel->SetBackgroundColour( *wxLIGHT_GREY );
|
||||
wxStaticText *text = new wxStaticText( m_panel, -1,
|
||||
wxStaticText *text = new wxStaticText( m_panel, wxID_ANY,
|
||||
wxT("wx.PopupTransientWindow is a\n")
|
||||
wxT("wx.PopupWindow which disappears\n")
|
||||
wxT("automatically when the user\n")
|
||||
@@ -308,7 +308,7 @@ void ComplexTransientPopup::OnIdle( wxIdleEvent& event )
|
||||
wxWindow *child = GetChild();
|
||||
if (!child) return; // nothing to do
|
||||
|
||||
wxRect clientRect(wxPoint(0,0), GetClientSize());
|
||||
wxRect clientRect(GetClientSize());
|
||||
//wxPrintf(wxT("**DropDownPopup::OnIdle mouse %d %d -- %d %d %d\n"), m_mouse.x, m_mouse.y, m_popped_handler, m_child, m_handlerPopup); fflush(stdout);
|
||||
// pop the event handler if inside the child window or
|
||||
// restore the event handler if not in the child window
|
||||
@@ -516,7 +516,7 @@ MyFrame::MyFrame(const wxString& title)
|
||||
wxButton *button2 = new wxButton( this, Minimal_StartScrolledPopup, wxT("Show scrolled popup"), wxPoint(20,70) );
|
||||
wxButton *button3 = new wxButton( this, Minimal_StartComplexPopup, wxT("Show complex popup"), wxPoint(20,120) );
|
||||
|
||||
wxTextCtrl* logWin = new wxTextCtrl( this, -1, wxEmptyString, wxDefaultPosition,
|
||||
wxTextCtrl* logWin = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition,
|
||||
wxDefaultSize, wxTE_MULTILINE );
|
||||
wxLogTextCtrl* logger = new wxLogTextCtrl( logWin );
|
||||
m_logOld = logger->SetActiveTarget( logger );
|
||||
|
Reference in New Issue
Block a user