Re:Help me please with GtkTextView (Denis V. Valchuk)
- From: Muthiah Annamalai <ec10130 nitt edu>
- To: gtk-app-devel-list gnome org
- Subject: Re:Help me please with GtkTextView (Denis V. Valchuk)
- Date: Thu, 19 Feb 2004 23:01:29 +0530
Hello to all Gtk Hackers!
Dan wrote:
My textview widget keeps extending in width as I add a long line of text
without spaces. What must I do?
Dan I think you got to use a scrolled window.
Then follow the code like this.
c=gtk_scrolled_window_new(NULL,NULL);
gtk_scrolled_window_add_with_viewport(
GTK_SCROLLED_WINDOW(c),
GTK_WIDGET(text_view));
I know this is not the ideal solution, but it works, as in
if you only want to keep the size of the widget constant and let
the scrollers appear for longer lines, this is the way to go.
I think you know of the 'gtk-demo', and in case you dont know
open your shell and bang in 'gtk-demo' at the prompt and click
at the text widget example.
Cheers
Muthu.
Life is beautiful.
http://cybernetics.freewebspace.com
-------------------------------------------------
This mail sent through IMP(http://www.nitt.edu)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]