c - How to make a gtktextview drop to the next row when getting to the border of the window? -
i want make textview output strings may multiple rows long, , divide them when reach border of window. window set non-resizable, size fixed.
i tried column , row numbers , work these, each character has different size in pixels, while row full of "m" characters reach end of row tenth character, row of "0" need sixteen characters end of line.
any ideas?
it seems want implement line wrapping in gtktextview. don't need yourself, text view widget supports line wrapping. turn on, call gtk_text_view_set_wrap_mode() text view , appropriate wrap mode, such gtk_wrap_char.
Comments
Post a Comment