A second reference is from Matthias' article - https://www.fltk.org/articles.php?L466+I0+T+P1+Q
This article uses the data()[0] pointer from Fl_Image class and accesses the pipe buffer directly. This can be used to provide a background for Fl_Image derived classes.
However, for other classes - like Fl_Text_Editor and Fl_help_View this method is not useful as these are not derived from Fl_Image
On Sunday, October 3, 2021 at 8:29:34 PM UTC+5:30 anmol....@gmail.com wrote:
However, both the methods described here replace the widget with a background image. For instance, using Fl_Text_Editor or Fl_Help_View and setting text->image() or view->image() will only render the background.
The behavior I want, is for a background image to be set for say, Fl_Help_View and then the contents of the buffer() to be rendered **on top** of the background image.
So, for instance you will have a text editor window with a custom background, and you can style type in the letters.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.