Page 1 of 1

wxControl and vte terminal

Posted: Mon Jan 27, 2014 3:52 pm
by spectrum
Dear all,

i am using wxControl (wx 3.0, gtk 2.0) that contains a vte-terminal window (vte-term library used as like in gtkterm). But i still cannot get the terminal window scrolling. Do i have to connect some signals to the lower gtkwindow ? Could anyone help me to implement this ?

Many thanks

Re: wxControl and vte terminal

Posted: Mon Jan 27, 2014 7:05 pm
by spectrum
Hi all,

sorry to have asked a so simple thing.
I studied a bit, and had the solution. I set this in the constructor of a "VTE" inherited class, from wxControl:

Code: Select all

        // global
        twidget = GTK_WIDGET(vte_terminal_new());

        GtkWidget *scrollbar;

        m_widget = gtk_hbox_new(0, 0);

        /* Create the scrollbar for the widget. */
        scrollbar = gtk_vscrollbar_new((VTE_TERMINAL(twidget))->adjustment);

        gtk_box_pack_start (GTK_BOX (m_widget), twidget, TRUE, TRUE, 0);
        gtk_box_pack_start (GTK_BOX (m_widget), scrollbar, FALSE, TRUE, 0);

        gtk_widget_show (scrollbar);
        gtk_widget_show (twidget);