problem with gtk_text_set_line_wrap.



Hello,
I have a problem with gtkText.

       kbd->input = gtk_text_new (NULL, NULL);
       gtk_text_set_editable (GTK_TEXT (kbd->input), TRUE);
       gtk_text_set_line_wrap(GTK_TEXT(kbd->input), FALSE);


       gtk_table_attach_defaults (GTK_TABLE(table), kbd->input, 0, 1, 0, 1);
       gtk_widget_set_usize (kbd->input, 186, 30);
       gtk_widget_realize (kbd->input);

I really need a "one line TextInput", so I use:
gtk_text_set_line_wrap(GTK_TEXT(kbd->input), FALSE);

I get a "one line textInput" and a huge problem. If the text I
introduce is bigger than the Input area, it is not shown. I mean, it
is written, but the input doesn't move the position to show the
cursor.

Thanks a lot.



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