wxControl and vte terminal Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

wxControl and vte terminal

Post by spectrum » Mon Jan 27, 2014 3:52 pm

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
Angelo
spectrum

spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

Re: wxControl and vte terminal

Post by spectrum » Mon Jan 27, 2014 7:05 pm

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);

Regards
Angelo
spectrum

Post Reply