Hi Albrecht I'm trying to display the text (more than one page text contains) on full screen (600*800 pixels) by using Fl_Text_Display widget and FL_Text_buffer
It is displaying the full text (one page) on the screen How to divide the FL_Text_buffer that contains more than one page and display remaining page on next page of the screen by pressing next button I don't want to have scrolling effect You must write your own program for this. You can either fill the Fl_Text_Buffer only with the number of lines that fits, and then show it. When the user presses the next button, clear the text buffer and fill it with the next number of lines to display. Or you can save your text in <n> Fl_Text_Buffer widgets (each with a number of lines that can be displayed), and switch the buffers, when the user clicks the next (or previous?) button. In any case you must count the lines yourself... Does this help, or do you want to know how to find out, how many lines can be displayed without scrolling? How to find out how many lines displayed without scrolling and fill Fl_Text_Buffer only with given ( some x value ) the number of lines . Regards Pushparaj.M _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

