|
|
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:
I've seen the example described by Ian - https://www.fltk.org/articles.php?L468
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.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/376ccba0-d492-43d5-ba53-492854e29803n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |