- wxScrolledWindow::Create( parent, id, pos, size, style, name );
-
- GTK_WIDGET_UNSET_FLAGS( m_wxwindow, GTK_CAN_FOCUS );
- GTK_WIDGET_SET_FLAGS( m_glWidget, GTK_CAN_FOCUS );
-
- gtk_myfixed_put( GTK_MYFIXED(m_wxwindow), m_glWidget, 0, 0, m_width, m_height );
-
- gtk_signal_connect( GTK_OBJECT(m_glWidget), "expose_event",
- GTK_SIGNAL_FUNC(gtk_window_expose_callback), (gpointer)this );
-
- gtk_signal_connect( GTK_OBJECT(m_glWidget), "draw",
- GTK_SIGNAL_FUNC(gtk_window_draw_callback), (gpointer)this );
-
- /* connect to key press and mouse handlers etc. */
- ConnectWidget( m_glWidget );
-
- /* must be realized for OpenGl output */
- gtk_widget_realize( m_glWidget );
-
- gtk_widget_show( m_glWidget );
-
- m_glContext = new wxGLContext( TRUE, this, palette );
-
- XFree( g_vi );
- g_vi = (XVisualInfo*) NULL;
-