Corrected filelist.txt a little - one gsocket.c is enough,
Corrected cursors - not yet perfect, Added some tests to scroll sample Made wxScrolledWindow::Scroll() call Refresh(), Change wxListCtrl to reflect the latter change (wxTreeCtrl will follow), Added activate event for wxMDIChildFrame Implemented wxSIMPLE_BORDER for wxWindow (no controls), Tried to correct positioning upon start-up - no way, Rewrote catching of scroll events - page-up, page-down, up and down work now. Don't know what TOP and BOTTOM are used for. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,6 +43,27 @@ extern bool g_isIdle;
|
||||
|
||||
extern wxList wxPendingDelete;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// "switch_page"
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static void gtk_mdi_page_change_callback(GtkNotebook *WXUNUSED(widget),
|
||||
GtkNotebookPage *WXUNUSED(page),
|
||||
gint page,
|
||||
wxMDIParentFrame *parent )
|
||||
{
|
||||
if (g_isIdle)
|
||||
wxapp_install_idle_handler();
|
||||
|
||||
wxMDIChildFrame *child = parent->GetActiveChild();
|
||||
|
||||
if (!child) return;
|
||||
|
||||
wxActivateEvent event( wxEVT_ACTIVATE, TRUE, child->GetId() );
|
||||
event.SetEventObject( child);
|
||||
child->GetEventHandler()->ProcessEvent( event );
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxMDIParentFrame
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -418,6 +439,9 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style )
|
||||
|
||||
m_widget = gtk_notebook_new();
|
||||
|
||||
gtk_signal_connect( GTK_OBJECT(m_widget), "switch_page",
|
||||
GTK_SIGNAL_FUNC(gtk_mdi_page_change_callback), (gpointer)parent );
|
||||
|
||||
gtk_notebook_set_scrollable( GTK_NOTEBOOK(m_widget), 1 );
|
||||
|
||||
m_parent->DoAddChild( this );
|
||||
|
Reference in New Issue
Block a user