GtkText (no-wrap, horiz-scrollbar)?




  Hi,

I'd like to have a GtkText widget that does not
wrap either lines or words and which displays
a scrollbar to scroll horizontally. It should
also be possible to move the cursor horizontally
out of the visible area and the text area should
scroll automatically so that cursor is visible
(and the horizontal scrollbar should get updated).
BTW, I had no problems to implement a vertical
scrollbar doing something like this:

  m_vScrollBar = gtk_vscrollbar_new( my_gtk_text->vadj );

and putting both the GtkText and the scrollbar into
a GtkTable widget, but doing the same with hadj and 
non-wrapping GtkText does not work. 

Does anyone know how to implement this or does anyone
know that this definitely is not possible?

I'm using GTK 1.2.3 on a vanilla SuSE 6.0.

  Thanks,

    Robert Roebling



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]